Skip to content

Add frontend linting to CI #4

Add frontend linting to CI

Add frontend linting to CI #4

Workflow file for this run

name: Frontend linting
on: [push, pull_request, workflow_dispatch]
jobs:
linting:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./webgui-new/
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Node.JS
uses: actions/setup-node@v3
with:
node-version: 20
- name: install npm
run: npm install
- name: cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: run linter
run: npm run lint