From 3c1f5db23939bd77bc04119444006326057f3ed3 Mon Sep 17 00:00:00 2001 From: Ben Yohay Date: Sun, 1 May 2022 13:32:10 +0300 Subject: [PATCH] OCMock: Add Github action that runs tests. --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml 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