Skip to content

Commit

Permalink
Report tests results
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso committed Nov 8, 2023
1 parent 98b9977 commit 5e1600b
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ "main" ]

permissions:
contents: read
checks: write

jobs:
build:
strategy:
Expand All @@ -32,8 +36,25 @@ jobs:
run: swift build -v

- name: run unit tests
run: swift test --filter='AppcastTests'

run: swift test --filter='AppcastTests' --parallel --xunit-output reports/AppcastTests.xml

- name: report unit test results
uses: dorny/test-reporter@afe6793191b75b608954023a46831a3fe10048d4
if: always()
with:
name: unit-tests-results
path: reports/AppcastTests.xml
reporter: jest-junit

- name: run integration tests
continue-on-error: true
run: swift test --filter='IntegrationTests'
run: swift test --filter='IntegrationTests' --parallel --xunit-output reports/IntegrationTests.xml

- name: report integration test results
uses: dorny/test-reporter@afe6793191b75b608954023a46831a3fe10048d4
if: always()
with:
name: integration-tests-results
path: reports/IntegrationTests.xml
reporter: jest-junit

0 comments on commit 5e1600b

Please sign in to comment.