Skip to content

Add initial project

Add initial project #2

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@v3
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