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

38 lines
785 B
YAML
Raw Normal View History

name: Lint frontend
on:
pull_request:
paths:
2023-03-03 06:09:56 +00:00
- 'invokeai/frontend/web/**'
types:
- 'ready_for_review'
- 'opened'
- 'synchronize'
push:
branches:
- 'main'
paths:
2023-03-03 06:09:56 +00:00
- 'invokeai/frontend/web/**'
merge_group:
workflow_dispatch:
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'
2023-03-06 09:02:40 +00:00
- run: 'yarn run lint:tsc'
- run: 'yarn run lint:madge'
- run: 'yarn run lint:eslint'
- run: 'yarn run lint:prettier'