Skip to content

Commit

Permalink
Add frontend linting to CI (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkristof authored Oct 25, 2023
1 parent a21416e commit f8d2caf
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ env:

jobs:



## BUILD JOBS
build:
strategy:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
cache: 'npm'
cache-dependency-path: ./webgui-new/package-lock.json

- name: cache node modules
id: cache_node_modules
uses: actions/cache@v3
with:
path: ./webgui-new/node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: install npm
if: steps.cache_node_modules.outputs.cache-hit != 'true'
run: npm install

- name: run linter
run: npm run lint



0 comments on commit f8d2caf

Please sign in to comment.