A separate 'translations' job runs the i18n checker on every push and PR and writes a coverage table per language to the run summary, with the missing, broken and unused keys listed. The checker now also fails when a language file is not offered in SOT_LANGS or cached in sw.js.
35 lines
719 B
YAML
35 lines
719 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 24
|
|
cache: npm
|
|
- run: npm ci
|
|
- run: npm test
|
|
- name: Build (not deployed — only releases deploy)
|
|
run: npm run build
|
|
|
|
translations:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 24
|
|
cache: npm
|
|
- run: npm ci
|
|
- name: Translation coverage
|
|
run: node scripts/i18n-check.js --summary "$GITHUB_STEP_SUMMARY"
|