Skip to content

Support reporters

Support reporters #74

Workflow file for this run

name: ci
on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
test:
runs-on: ${{matrix.os}}
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
npm install
- name: Lint
run: |
npm run lint
- name: Run tests
run: |
mkdir reports
npm run unit -- --reporter spec --reporter junit:reports/${{vars.GITHUB_ACTION}}.xml
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Tests # Name of the check run which will be created
path: reports/*.xml # Path to test results
reporter: jest-junit # Format of test results