mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-06 00:32:13 +08:00
ci: regenerate the i18n types and check them for drift (#8494)
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "src/**"
|
||||
- "scripts/**"
|
||||
- "**/*.js"
|
||||
- "**/*.ts"
|
||||
- "**/*.tsx"
|
||||
@@ -41,6 +42,14 @@ jobs:
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Check generated i18n types are up to date
|
||||
run: |
|
||||
pnpm i18n:types
|
||||
if ! git diff --exit-code -- src/types/generated; then
|
||||
echo "::error::src/types/generated is stale; run pnpm i18n:types and commit the result"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Run Prettier check
|
||||
run: pnpm format:check
|
||||
|
||||
|
||||
Reference in New Issue
Block a user