2022-12-14 22:35:32 +00:00
|
|
|
name: Lint frontend
|
|
|
|
|
|
|
|
on:
|
2022-12-16 12:56:39 +00:00
|
|
|
pull_request:
|
2023-03-07 10:25:43 +00:00
|
|
|
types:
|
|
|
|
- 'ready_for_review'
|
|
|
|
- 'opened'
|
|
|
|
- 'synchronize'
|
2022-12-14 22:35:32 +00:00
|
|
|
push:
|
2023-03-07 10:25:43 +00:00
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
merge_group:
|
|
|
|
workflow_dispatch:
|
2022-12-14 22:35:32 +00:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
2023-03-03 06:09:56 +00:00
|
|
|
working-directory: invokeai/frontend/web
|
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'
|
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'
|