From 255a0c55baf9f13e9757fcd544c0ad6a0004add4 Mon Sep 17 00:00:00 2001 From: Joel Klabo Date: Fri, 20 Jan 2023 17:51:47 -0800 Subject: [PATCH] Update CI Specify Xcode Version Closes: #360 --- .github/workflows/run-tests.yaml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index a9f498a0..dbc46d7a 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -1,4 +1,6 @@ -name: Test +name: Run Test Suite +run-name: Testing ${{ github.ref }} by @${{ github.actor }} + on: push: branches: @@ -6,12 +8,24 @@ on: pull_request: branches: - "*" + + jobs: - test: - name: Run Tests - runs-on: macos-latest + run_tests: + runs-on: macos-12 + strategy: + matrix: + include: + - xcode: "14.2" + ios: "16.2" + + name: Test iOS (${{ matrix.ios }}) steps: - - name: Checkout repository - uses: actions/checkout@v1 - - name: Running Tests - run: xcodebuild test -scheme damus -project damus.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.0' | xcpretty && exit ${PIPESTATUS[0]} \ No newline at end of file + - name: Checkout + uses: actions/checkout@v1 + - name: Select Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: ${{ matrix.xcode }} + - name: Run Tests + run: xcodebuild test -scheme damus -project damus.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 14,OS=${{ matrix.ios }}' | xcpretty && exit ${PIPESTATUS[0]} \ No newline at end of file