Skip to content

Support reporters

Support reporters #72

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: |

Check failure on line 38 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 38, Col: 14): Unrecognized named-value: 'GITHUB_ACTION'. Located at position 1 within expression: GITHUB_ACTION
mkdir reports
npm run unit -- --reporter spec --reporter junit:reports/${{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