Skip to content

Resolves #15

Resolves #15 #56

Workflow file for this run

name: Run tests
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ "20.11.1", "latest" ]
name: Run tests on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@master
- uses: actions/cache@v3
with:
path: .parcel-cache
key: ${{ runner.os }}-node${{ matrix.node }}-parcel
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npx parcel build --no-source-maps --no-autoinstall
env:
NODE_ENV: production
- run: npm test -- --ci --coverage --json --outputFile=test-results.json --testResultsProcessor="jest-junit"
- name: Code Coverage Summary Report
uses: irongut/[email protected]
with:
filename: coverage/cobertura-coverage.xml
badge: true
format: 'markdown'
output: 'both'