Skip to content

Test coverage

Test coverage #185

Workflow file for this run

name: tests
on:
pull_request:
branches: [ master ]
jobs:
build:
# Machine environment:
# We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build-lib
- name: Test
run: npm run test-lib-headless
- name: Test Reporter
uses: dorny/test-reporter@v1.8.0
with:
name: Karma Tests # Name of the check run which will be created
path: coverage/cobertura-coverage.xml # Path to test results
reporter: jest-junit # Format of test results
# - name: Build demo (ssr)
# run: npm run build