Skip to content

Add frontend linting to CI #2

Add frontend linting to CI

Add frontend linting to CI #2

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: cache npm
uses: actions/cache@v3
env:
cache-name: npm_cache
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
- name: install npm
run: npm install
- name: run linter
run: npm run lint