Skip to content

Upgrade to setup-node@v4 (#4) #7

Upgrade to setup-node@v4 (#4)

Upgrade to setup-node@v4 (#4) #7

Workflow file for this run

name: Validate
# Lints, builds, and tests the project whenever a pull request is opened
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm install
# Because of this project's special setup, build must come before lint
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test
run: npm test