2022-12-14 22:35:32 +00:00
|
|
|
name: Lint frontend
|
|
|
|
|
|
|
|
on:
|
2022-12-16 12:56:39 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2023-01-30 23:48:43 +00:00
|
|
|
- 'invokeai/frontend/**'
|
2022-12-14 22:35:32 +00:00
|
|
|
push:
|
|
|
|
paths:
|
2023-01-30 23:48:43 +00:00
|
|
|
- 'invokeai/frontend/**'
|
2022-12-14 22:35:32 +00:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
2023-01-30 23:48:43 +00:00
|
|
|
working-directory: invokeai/frontend
|
2022-12-14 22:35:32 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-frontend:
|
2023-01-30 11:28:05 +00:00
|
|
|
if: github.event.pull_request.draft == false
|
2022-12-14 22:35:32 +00:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Setup Node 18
|
2022-12-16 12:56:39 +00:00
|
|
|
uses: actions/setup-node@v3
|
2022-12-14 22:35:32 +00:00
|
|
|
with:
|
|
|
|
node-version: '18'
|
2022-12-16 12:56:39 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: 'yarn install --frozen-lockfile'
|
2022-12-14 22:35:32 +00:00
|
|
|
- run: 'yarn tsc'
|
|
|
|
- run: 'yarn run madge'
|
2022-12-15 01:32:59 +00:00
|
|
|
- run: 'yarn run lint --max-warnings=0'
|
2022-12-16 12:56:39 +00:00
|
|
|
- run: 'yarn run prettier --check'
|