Add formatting and linting checks to CI #7
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: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
lint-format: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the source | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
# Setup node.js | |
- name: "Setup node.js" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.x" | |
cache: 'npm' | |
cache-dependency-path: ./package-lock.json | |
- name: Lint & Format | |
run: npm run lint | |
continue-on-error: true | |
- name: NPM install | |
run: npm ci | |
- name: Build | |
run: npm run build |