Skip to content

Commit

Permalink
Merge pull request #106 from Yubico/wip/github-test-results
Browse files Browse the repository at this point in the history
Publish test reports in GitHub pull requests
  • Loading branch information
emlun committed Mar 16, 2021
2 parents d51b77e + 4f97ba3 commit 18a3b3d
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -24,12 +24,34 @@ jobs:
- name: Run tests
run: ./gradlew cleanTest check

- name: Archive test report
- name: Archive HTML test report
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-reports
name: test-reports-java${{ matrix.java }}-html
path: "*/build/reports/**"

- name: Archive JUnit test report
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-reports-java${{ matrix.java }}-xml
path: "*/build/test-results/**/*.xml"

- name: Build JavaDoc
run: ./gradlew assembleJavadoc

publish-test-results:
name: Publish test results
needs: test
runs-on: ubuntu-latest
if: ${{ always() && github.event_name == 'pull_request' }}

steps:
- name: Download artifacts
uses: actions/download-artifact@v2

- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: "**/*.xml"

0 comments on commit 18a3b3d

Please sign in to comment.