diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b1da31d4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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/setup-xcode@v1.2.1 + 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