Skip to content

Commit

Permalink
Using xunit over xcbeautify for reporting test errors
Browse files Browse the repository at this point in the history
The later doesn't work well with Swift Testing yet
  • Loading branch information
stigi committed Oct 17, 2024
1 parent 8a0c1fe commit 02316f1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/spm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ on:
jobs:
build:
runs-on: macos-latest
permissions:
contents: read
checks: write
pull-requests: write
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install Dependencies
run: brew update && brew install --force xcbeautify
- name: Checkout repository
uses: actions/checkout@v4
- name: SPM Cache
Expand All @@ -28,4 +30,9 @@ jobs:
- name: Build
run: swift build --build-tests
- name: Test
run: set -o pipefail && swift test --skip-build | xcbeautify --renderer github-actions
run: swift test --parallel --skip-build --xunit-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'

0 comments on commit 02316f1

Please sign in to comment.