From 2223fc5301ecb30b226bb2d98cdf221e910607ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Thu, 17 Oct 2024 23:34:19 +0200 Subject: [PATCH] test --- .github/workflows/spm-test.yml | 21 ++++++++++++++++----- Tests/EmbeddedProvisionTests.swift | 2 +- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/spm-test.yml b/.github/workflows/spm-test.yml index a653863..afe5fca 100644 --- a/.github/workflows/spm-test.yml +++ b/.github/workflows/spm-test.yml @@ -6,16 +6,15 @@ on: push: branches: - main + - ullrich/test jobs: build: - runs-on: macos-latest + runs-on: macos-15 steps: - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: latest-stable - - name: Install Dependencies - run: brew update && brew install --force xcbeautify + xcode-version: latest - name: Checkout repository uses: actions/checkout@v4 - name: SPM Cache @@ -25,7 +24,19 @@ jobs: key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} restore-keys: | ${{ runner.os }}-spm- + - name: Environment + run: | + swift --version + xcode-select -p + xcbeautify --version - name: Build run: swift build --build-tests - name: Test - run: set -o pipefail && swift test --skip-build | xcbeautify --renderer github-actions \ No newline at end of file + run: | + set -o pipefail + swift test --parallel --skip-build --xcunit-output ./reports/xcunit.xml + - name: Publish Test Report + uses: mikepenz/action-junit-report@v4 + if: success() || failure() # always run even if the previous step fails + with: + report_paths: './reports/xcunit*.xml' diff --git a/Tests/EmbeddedProvisionTests.swift b/Tests/EmbeddedProvisionTests.swift index 7973749..e663f90 100644 --- a/Tests/EmbeddedProvisionTests.swift +++ b/Tests/EmbeddedProvisionTests.swift @@ -45,7 +45,7 @@ struct EmbeddedProvisionProperties { @Test("parses app ID") func appIDName() throws { - #expect(provision.appIDName == "A Fake App for Testing") + #expect(provision.appIDName == "A Fake App for Testing - provoking a test failure") } @Test("parses platform")