Skip to content

Commit

Permalink
OCMock: Add Github action that runs tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
byohay committed May 1, 2022
1 parent 84fcb4d commit 5a1eb4d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on: [pull_request, push, workflow_dispatch]

jobs:
test:
name: Build and Test
runs-on: macos-10.15

steps:
- name: Setup Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: '12.4'

- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive
lfs: true

- name: Build and Run Tests
run: xcodebuild -project Source/OCMock.xcodeproj -scheme OCMock -destination 'platform=macOS' -resultBundlePath result_bundle.xcresult test

- name: Upload result bundle
uses: actions/upload-artifact@v2
with:
name: result_bundle.xcresult
path: result_bundle.xcresult

0 comments on commit 5a1eb4d

Please sign in to comment.