Skip to content

CI Test Runner

CI Test Runner #5

name: 'CI Test Runner'
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
actions: read
checks: write
jobs:
test-run:
name: Run Project Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run test:js:ci
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: reports/jest-junit.xml
report:
needs: [test-run]
name: Create Test Report
runs-on: ubuntu-latest
steps:
- name: Generate test report
uses: dorny/test-reporter@v1
id: reporter
with:
artifact: test-results
name: Jest Test Report
path: '*.xml'
reporter: jest-junit
- name: Show the test report URL
run: echo ${{ steps.reporter.outputs.url_html }}