mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-01-20 03:50:21 +00:00
add workflow
This commit is contained in:
23
.github/workflows/frontend-linting.yml
vendored
Normal file
23
.github/workflows/frontend-linting.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Frontend Linting and Formatting
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [develop]
|
||||||
|
pull_request:
|
||||||
|
branches: [develop]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
- run: npm install
|
||||||
|
|
||||||
|
- name: Run Prettier formatting
|
||||||
|
run: npm run format
|
||||||
|
|
||||||
|
- name: Run ESLint
|
||||||
|
run: npm run lint -- --max-warnings=0
|
||||||
Reference in New Issue
Block a user