add workflow

This commit is contained in:
wh1te909
2022-05-19 04:01:15 +00:00
parent f2f1fcda51
commit ef5d10ea7f

23
.github/workflows/frontend-linting.yml vendored Normal file
View 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