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:
|
2023-12-15 13:32:31 +00:00
|
|
|
- name: Setup Node 18
|
2023-12-08 12:47:01 +00:00
|
|
|
uses: actions/setup-node@v4
|
2022-12-14 22:35:32 +00:00
|
|
|
with:
|
2023-12-15 13:32:31 +00:00
|
|
|
node-version: '18'
|
2023-12-08 13:41:46 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
with:
|
2023-12-15 13:32:31 +00:00
|
|
|
version: '8.12.1'
|
2023-12-08 13:41:46 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: 'pnpm install --prefer-frozen-lockfile'
|
|
|
|
- name: Typescript
|
|
|
|
run: 'pnpm run lint:tsc'
|
|
|
|
- name: Madge
|
|
|
|
run: 'pnpm run lint:madge'
|
|
|
|
- name: ESLint
|
|
|
|
run: 'pnpm run lint:eslint'
|
|
|
|
- name: Prettier
|
|
|
|
run: 'pnpm run lint:prettier'
|