diff --git a/.github/workflows/frontend-check.yml b/.github/workflows/frontend-check.yml index c140f8260..ce6e0b960 100644 --- a/.github/workflows/frontend-check.yml +++ b/.github/workflows/frontend-check.yml @@ -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 diff --git a/src/types/generated/i18n-keys.ts b/src/types/generated/i18n-keys.ts index f17966301..489add603 100644 --- a/src/types/generated/i18n-keys.ts +++ b/src/types/generated/i18n-keys.ts @@ -939,6 +939,7 @@ export const translationKeys = [ 'tests.statuses.test.yes', 'tests.statuses.test.no', 'tests.statuses.test.failed', + 'tests.statuses.test.risky', 'tests.statuses.test.completed', 'tests.statuses.test.disallowedIsp', 'tests.statuses.test.originalsOnly', diff --git a/src/types/generated/i18n-resources.ts b/src/types/generated/i18n-resources.ts index 9915c7de6..467c7317b 100644 --- a/src/types/generated/i18n-resources.ts +++ b/src/types/generated/i18n-resources.ts @@ -1589,6 +1589,7 @@ export interface TranslationResources { noDisney: string originalsOnly: string pending: string + risky: string unsupportedRegion: string yes: string }