File
Blob: .github/workflows/_wpt.yml
| 1 | name: 'WPT Report' |
| 2 | on: |
| 3 | workflow_call: |
| 4 | inputs: |
| 5 | image: |
| 6 | description: 'Runner image to use' |
| 7 | required: true |
| 8 | type: string |
| 9 | logs_artifact: |
| 10 | description: 'Name of artifact containing test logs' |
| 11 | required: true |
| 12 | type: string |
| 13 | report_artifact: |
| 14 | description: 'Name of artifact to use for WPT report JSON file' |
| 15 | required: true |
| 16 | type: string |
| 17 | |
| 18 | permissions: |
| 19 | # Read repo |
| 20 | contents: read |
| 21 | # Read/write artifacts |
| 22 | actions: write |
| 23 | jobs: |
| 24 | wpt-report: |
| 25 | runs-on: ${{ inputs.image }} |
| 26 | steps: |
| 27 | - uses: actions/checkout@v6 |
| 28 | - name: Download test logs |
| 29 | uses: actions/download-artifact@v8 |
| 30 | continue-on-error: true |
| 31 | with: |
| 32 | name: ${{ inputs.logs_artifact }} |
| 33 | path: testlogs |
| 34 | - name: Generate WPT report and stats |
| 35 | run: ./tools/cross/wpt_logs.py --print-stats --write-report=wpt-report.json testlogs/ >> $GITHUB_STEP_SUMMARY |
| 36 | - name: Upload WPT report |
| 37 | uses: actions/upload-artifact@v7 |
| 38 | with: |
| 39 | name: ${{ inputs.report_artifact }} |
| 40 | path: wpt-report.json |