Compile i18n before running lint (#10711)
This commit is contained in:
@@ -71,18 +71,18 @@ jobs:
|
|||||||
profile: ${{ inputs.channel || 'testflight' }}
|
profile: ${{ inputs.channel || 'testflight' }}
|
||||||
previous-commit-tag: ${{ inputs.runtimeVersion }}
|
previous-commit-tag: ${{ inputs.runtimeVersion }}
|
||||||
|
|
||||||
- name: Lint check
|
|
||||||
run: pnpm lint
|
|
||||||
|
|
||||||
- name: Prettier check
|
|
||||||
run: pnpm prettier --check .
|
|
||||||
|
|
||||||
- name: 🔤 Compile translations
|
- name: 🔤 Compile translations
|
||||||
run: pnpm intl:build 2>&1 | tee i18n.log
|
run: pnpm intl:build 2>&1 | tee i18n.log
|
||||||
|
|
||||||
- name: Check for i18n compilation errors
|
- name: Check for i18n compilation errors
|
||||||
run: if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compilation errors!\n\n"; fi
|
run: if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compilation errors!\n\n"; fi
|
||||||
|
|
||||||
|
- name: Lint check
|
||||||
|
run: pnpm lint
|
||||||
|
|
||||||
|
- name: Prettier check
|
||||||
|
run: pnpm prettier --check .
|
||||||
|
|
||||||
- name: Type check
|
- name: Type check
|
||||||
run: pnpm typecheck
|
run: pnpm typecheck
|
||||||
|
|
||||||
|
|||||||
@@ -128,15 +128,15 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Lint check
|
|
||||||
run: pnpm lint
|
|
||||||
|
|
||||||
- name: 🔤 Compile translations
|
- name: 🔤 Compile translations
|
||||||
run: pnpm intl:build 2>&1 | tee i18n.log
|
run: pnpm intl:build 2>&1 | tee i18n.log
|
||||||
|
|
||||||
- name: Check for i18n compilation errors
|
- name: Check for i18n compilation errors
|
||||||
run: if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compilation errors!\n\n"; fi
|
run: if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compilation errors!\n\n"; fi
|
||||||
|
|
||||||
|
- name: Lint check
|
||||||
|
run: pnpm lint
|
||||||
|
|
||||||
- name: Type check
|
- name: Type check
|
||||||
run: pnpm typecheck
|
run: pnpm typecheck
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user