Skip to content

Merge lint and test workflows #18

Merge lint and test workflows

Merge lint and test workflows #18

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
lint:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci --no-audit
- name: Lint
run: npm run lint
test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
node_version: ["current", "lts/*"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
run: npm ci --no-audit
- name: Build
run: npm run build
- name: Run tests
run: npm test