mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
41d6a38690
The action should run on every PR. We can make this more efficient in the future.
34 lines
693 B
YAML
34 lines
693 B
YAML
name: Lint frontend
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- 'ready_for_review'
|
|
- 'opened'
|
|
- 'synchronize'
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
merge_group:
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
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 run lint:tsc'
|
|
- run: 'yarn run lint:madge'
|
|
- run: 'yarn run lint:eslint'
|
|
- run: 'yarn run lint:prettier'
|