Auto-format frontend (#2009)

* Auto-format frontend

* Update lint-frontend GA workflow node and checkout

* Fix linter error in ThemeChanger

* Add a `on: pull_request` to lint-frontend workflow

Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
This commit is contained in:
Kaspar Emanuel
2022-12-16 12:56:39 +00:00
committed by GitHub
parent c0c4d7ca69
commit 2aa5bb6aad
21 changed files with 75 additions and 49 deletions

View File

@@ -1,6 +1,9 @@
name: Lint frontend
on:
pull_request:
paths:
- 'frontend/**'
push:
paths:
- 'frontend/**'
@@ -14,11 +17,12 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Setup Node 18
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '18'
- uses: actions/checkout@v2
- run: 'yarn install'
- uses: actions/checkout@v3
- run: 'yarn install --frozen-lockfile'
- run: 'yarn tsc'
- run: 'yarn run madge'
- run: 'yarn run lint --max-warnings=0'
- run: 'yarn run prettier --check'