InvokeAI/.github/workflows/lint-frontend.yml

30 lines
642 B
YAML
Raw Normal View History

name: Lint frontend
on:
pull_request:
paths:
2023-03-03 06:09:56 +00:00
- 'invokeai/frontend/web/**'
push:
paths:
2023-03-03 06:09:56 +00:00
- 'invokeai/frontend/web/**'
defaults:
run:
2023-03-03 06:09:56 +00:00
working-directory: invokeai/frontend/web
jobs:
lint-frontend:
if: github.event.pull_request.draft == false
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'
2022-12-15 01:32:59 +00:00
- run: 'yarn run lint --max-warnings=0'
- run: 'yarn run prettier --check'