diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e807aac..f288479 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ "main" ] +permissions: + contents: read + checks: write + jobs: build: strategy: @@ -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 + \ No newline at end of file