Skip to content

Annotate CI run with test results #592

Annotate CI run with test results

Annotate CI run with test results #592

name: Annotate CI run with test results
on:
workflow_run:
workflows:
- "Run Tests"
types:
- completed
permissions:
contents: read
jobs:
annotate:
name: Annotate CI run with test results
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion != 'cancelled' }}
permissions:
actions: read
checks: write
pull-requests: write
strategy:
fail-fast: false
matrix:
node-version: [20.x, 22.16.0]
timeout-minutes: 5
steps:
- name: Annotate CI run with test results
uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2 # v3.0.0
with:
artifact: test-reports-${{ matrix.node-version }}
name: Test Results (${{matrix.node-version}}
path: "test-results.xml"
reporter: java-junit
token: ${{ secrets.GITHUB_TOKEN }}