mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
2aa5bb6aad
* 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>
29 lines
554 B
YAML
29 lines
554 B
YAML
name: Lint frontend
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'frontend/**'
|
|
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@v3
|
|
with:
|
|
node-version: '18'
|
|
- 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'
|