Cleanups and re-trigger GHA workflow

This commit is contained in:
Chris Vest 2021-05-28 18:23:10 +02:00
parent 9724ab23fb
commit 2ae7a88067
1 changed files with 9 additions and 9 deletions

View File

@ -14,32 +14,32 @@
# under the License. # under the License.
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
name: Upload Test Results name: Upload Test Results
on: on:
workflow_run: workflow_run:
workflows: [ "Build" ] workflows: ["Build"]
types: types: [completed]
- completed
jobs: jobs:
tests: test_reports:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
version: [ "java17", "java11" ] java: [java17, java11]
steps: steps:
- name: Download Artifacts - name: Download Artifacts
uses: dawidd6/action-download-artifact@v2.11.0 uses: dawidd6/action-download-artifact@v2.14.0
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ${{ github.event.workflow_run.workflow_id }} workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: completed workflow_conclusion: completed
commit: ${{ github.event.workflow_run.head_commit.id }} commit: ${{ github.event.workflow_run.head_commit.id }}
# The artefact name must be coordinated with the "Upload * Test Results" steps in ci-workflow.yml. # The artefact name must be coordinated with the "Upload * Test Results" steps in ci-workflow.yml.
name: test-results-${{ matrix.version }} name: test-results-${{ matrix.java }}
- name: Publish Test Report - name: Publish Test Report
uses: scacap/action-surefire-report@v1.0.9 uses: scacap/action-surefire-report@v1.0.10
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
report_paths: '**/target/surefire-reports/TEST-*.xml' report_paths: '**/target/surefire-reports/TEST-*.xml'
commit: ${{ github.event.workflow_run.head_commit.id }} commit: ${{ github.event.workflow_run.head_commit.id }}
check_name: Test results ${{ matrix.version }} check_name: Test results ${{ matrix.java }}