Skip to content

Format with prettier #56

Format with prettier

Format with prettier #56

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_latest"]
steps:
- uses: actions/[email protected]
- uses: dcodeIO/setup-node-nvm@master
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