ci: add prettier format check (#2908)

This commit is contained in:
Alex Yang
2023-06-29 12:13:35 +08:00
committed by GitHub
parent 2c95bfcc3d
commit e08ee9b7ff
9 changed files with 78 additions and 60 deletions

View File

@@ -42,12 +42,16 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Run checks
run: |
yarn i18n-codegen gen
yarn typecheck
yarn lint --max-warnings=0
yarn circular
- name: Run i18n codegen
run: yarn i18n-codegen gen
- name: Run Type Check
run: yarn typecheck
- name: Run ESLint
run: yarn lint --max-warnings=0 --cache
- name: Run Prettier
run: yarn prettier . --ignore-unknown --cache --check
- name: Run circular
run: yarn circular
build-docs:
name: Build Docs