From bb65732f348b2f28ae7ae4c93f4bdac31402e210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20O=E2=80=99Brien?= Date: Sun, 20 Oct 2024 18:49:25 +1000 Subject: [PATCH] Tweaking runner actions --- .github/workflows/unit-tests.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 17732cd..8e8d8bd 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -85,4 +85,29 @@ jobs: run: xcodebuild build -scheme SyntaxSparrow -destination "OS=18.0,name=iPhone 16" - name: Test - run: xcodebuild test-without-building -scheme SyntaxSparrow -destination "name=iPhone 16" -enableCodeCoverage YES \ No newline at end of file + run: xcodebuild test-without-building -scheme SyntaxSparrow -destination "name=iPhone 16" -enableCodeCoverage YES + + ios_tests_previous: + name: iOS Unit Tests + strategy: + matrix: + os: [macos-13] + swift: ["5.9", "5.8"] + runs-on: ${{ matrix.os }} + steps: + - uses: swift-actions/setup-swift@v1 + with: + swift-version: ${{ matrix.os }} + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: .build + key: ${{ matrix.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + ${{ matrix.os }}-spm- + + - name: Build + run: xcodebuild build -scheme SyntaxSparrow -destination "OS=17.2,name=iPhone 13" + + - name: Test + run: xcodebuild test-without-building -scheme SyntaxSparrow -destination "name=iPhone 13" -enableCodeCoverage YES \ No newline at end of file