mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ea4d071503
The timeouts are at least 3x the expected time to complete the jobs. This is particularly relevant for the `pytest` job. Occasionally, it hangs while running tests that do network things, and the job only times out after 6 hours.
44 lines
912 B
YAML
44 lines
912 B
YAML
# This workflow runs the frontend code quality checks.
|
|
#
|
|
# It may be triggered via dispatch, or by another workflow.
|
|
|
|
name: 'Check: frontend'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: invokeai/frontend/web
|
|
|
|
jobs:
|
|
check-frontend:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10 # expected run time: <2 min
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up frontend
|
|
uses: ./.github/actions/install-frontend-deps
|
|
|
|
- name: Run tsc check
|
|
run: 'pnpm run lint:tsc'
|
|
shell: bash
|
|
|
|
- name: Run dpdm check
|
|
run: 'pnpm run lint:dpdm'
|
|
shell: bash
|
|
|
|
- name: Run eslint check
|
|
run: 'pnpm run lint:eslint'
|
|
shell: bash
|
|
|
|
- name: Run prettier check
|
|
run: 'pnpm run lint:prettier'
|
|
shell: bash
|
|
|
|
- name: Run knip check
|
|
run: 'pnpm run lint:knip'
|
|
shell: bash
|