ci: test i18n

This commit is contained in:
Isaac
2023-09-07 02:12:11 +01:00
parent ea16eb704b
commit 80c23444c6
6 changed files with 274 additions and 15 deletions

35
.github/workflows/i18n.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: 'Check localisations'
on:
workflow_dispatch:
push:
# branches:
# - main
pull_request:
permissions:
contents: read
pull-requests: read
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Validate localisations
run: ./scripts/check-i18n.js