InvokeAI/.github/workflows/lint-frontend.yml

29 lines
554 B
YAML
Raw Normal View History

name: Lint frontend
on:
pull_request:
paths:
- 'frontend/**'
push:
paths:
- 'frontend/**'
defaults:
run:
working-directory: frontend
jobs:
lint-frontend:
runs-on: ubuntu-22.04
steps:
- name: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: '18'
- uses: actions/checkout@v3
- run: 'yarn install --frozen-lockfile'
- run: 'yarn tsc'
- run: 'yarn run madge'
2022-12-15 01:32:59 +00:00
- run: 'yarn run lint --max-warnings=0'
- run: 'yarn run prettier --check'