Skip to content

Build, Test, Lint, Format (Node.js) #925

Build, Test, Lint, Format (Node.js)

Build, Test, Lint, Format (Node.js) #925

Workflow file for this run

name: Build, Test, Lint, Format (Node.js)
on: [pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
- name: install latest npm
run: npm install -g npm@latest
- name: npm install
run: npm install
env:
CI: true
- name: npm run build --if-present
run: npm run build --if-present
env:
CI: true
- name: npm test
run: npm test
env:
CI: true
- name: npm run format:check
run: npm run format:check
env:
CI: true
NODE_ENV: test
- name: npm run lint
run: npm run lint
env:
CI: true