Skip to content

Commit

Permalink
Merge pull request #15 from byohay/feature/add-github-actions-tests
Browse files Browse the repository at this point in the history
OCMock: Add Github action that runs tests.
  • Loading branch information
barakwei authored May 3, 2022
2 parents b9c7fb9 + 3c1f5db commit 610dc18
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-12

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

- 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 610dc18

Please sign in to comment.