Skip to content

Test Report

Test Report #80

name: 'Test Report'
on:
workflow_run:
workflows: ['Run Tests']
types:
- completed
permissions:
contents: read
actions: read
checks: write
pull-requests: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Download workflow artifact
uses: actions/download-artifact@v4
with:
name: test-results
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set pr number env
run: |
PR_NUMBER=$(cat pr_number)
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
- name: Test Report
uses: phoenix-actions/test-reporting@v15
id: test-report
with:
artifact: test-results
name: Mocha Tests
path: test-results.json
reporter: mocha-json
- name: c8 coverage report
uses: Nef10/lcov-reporter-action@v0.4.0
with:
pr-number: ${{ env.PR_NUMBER }}
github-token: ${{ secrets.GITHUB_TOKEN }}