forked from invoke-ai/InvokeAI
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (40 loc) · 1.2 KB
/
check-frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Check Frontend
on:
pull_request:
types:
- 'ready_for_review'
- 'opened'
- 'synchronize'
push:
branches:
- 'main'
merge_group:
workflow_dispatch:
workflow_call:
defaults:
run:
working-directory: invokeai/frontend/web
jobs:
check-frontend:
if: github.event.pull_request.draft == false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/check-frontend-changes
id: check-frontend-changes
- uses: ./.github/actions/setup-frontend
if: steps.check-frontend-changes.outputs.frontend_any_changed == 'true'
- name: Typescript
if: steps.check-frontend-changes.outputs.frontend_any_changed == 'true'
run: 'pnpm run lint:tsc'
- name: Madge
if: steps.check-frontend-changes.outputs.frontend_any_changed == 'true'
run: 'pnpm run lint:madge'
- name: ESLint
if: steps.check-frontend-changes.outputs.frontend_any_changed == 'true'
run: 'pnpm run lint:eslint'
- name: Prettier
if: steps.check-frontend-changes.outputs.frontend_any_changed == 'true'
run: 'pnpm run lint:prettier'