Skip to content

Cypress setup

Cypress setup #1999

Workflow file for this run

name: Pull request
on:
pull_request:
branches: [master]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: psf/black@stable
with:
options: ". -l 79 --check"
test:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
# Test on every node version that is supported
# by our package.json.
# Hopefully this allows us to catch problems
# with differing versions ahead of time.
node-version: [19.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: npm
node-version: ${{ matrix.node-version }}
- name: Install repository
run: npm ci
- name: Lint repository
run: npm run lint
- name: Build package
run: npm run build
- name: Test repository
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.2.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true