mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
f17b3d0068
- update all scripts - update the frontend GH action - remove yarn-related files - update ignores Yarn classic + storybook has some weird module resolution issue due to how it hoists dependencies. See https://github.com/storybookjs/storybook/issues/22431#issuecomment-1630086092 When I did the `package.json` solution in this thread, it broke vite. Next option is to upgrade to yarn 3 or pnpm. I chose pnpm.
34 lines
700 B
YAML
34 lines
700 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 20
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
- uses: actions/checkout@v4
|
|
- run: 'pnpm install --prefer-frozen-lockfile'
|
|
- run: 'pnpm run lint:tsc'
|
|
- run: 'pnpm run lint:madge'
|
|
- run: 'pnpm run lint:eslint'
|
|
- run: 'pnpm run lint:prettier'
|