Add lint-frontend github actions workflow

This commit is contained in:
Kaspar Emanuel 2022-12-14 22:35:32 +00:00 committed by blessedcoolant
parent 392c0725f3
commit 9b9e276491

24
.github/workflows/lint-frontend.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Lint frontend
on:
push:
paths:
- 'frontend/**'
defaults:
run:
working-directory: frontend
jobs:
lint-frontend:
runs-on: ubuntu-22.04
steps:
- name: Setup Node 18
uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/checkout@v2
- run: 'yarn install'
- run: 'yarn tsc'
- run: 'yarn run madge'
- run: 'yarn run lint --max-warnings=22'