Switch to vitest & update deps #232
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 16.17 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.17 | |
cache: "npm" # cache ~/.npm in case 'npm ci' needs to run | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Check for formatting issues | |
run: npm run check:format | |
- name: Check for linting issues | |
run: npm run check:lint | |
tests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 16.17 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.17 | |
cache: "npm" # cache ~/.npm in case 'npm ci' needs to run | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Test | |
run: npm run test | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 16.17 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.17 | |
cache: "npm" # cache ~/.npm in case 'npm ci' needs to run | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build |