Skip to content

0.5.3

0.5.3 #5

Workflow file for this run

name: Node.js CI
on:
push:
pull_request:
branches: [$default-branch]
jobs:
build:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.47.2-jammy
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Cache dependencies
id: modules-cache
uses: actions/cache@v3
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
- run: npm ci
if: steps.modules-cache.outputs.cache-hit != 'true'
- run: npm run build
- run: npm run test
env:
HOME: /root
- run: npm run coverage
env:
HOME: /root
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: "./coverage"