Skip to content

ci: fix test command #590

ci: fix test command

ci: fix test command #590

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
- master
paths-ignore:
- "doc/**"
push:
paths-ignore:
- "doc/**"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 20
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint:ci
- name: Spellcheck
run: npm run spellcheck:ci
test:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:visual
- name: archive visual outputs
uses: actions/upload-artifact@v3
with:
name: visual-test-results
path: |
tests/output
strategy:
fail-fast: true
matrix:
node:
- 18
- 20
os:
- ubuntu-latest
- windows-latest
- macos-latest
max-parallel: 1