mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
3f27608850
Checks the following: - Translation files are valid JS - Each translation file is registered in translations.js - Each translation's code matches its name - Translation dictionaries only contain keys that exist in the English translation.
28 lines
678 B
YAML
28 lines
678 B
YAML
# This workflow runs the tools/check-translations.js script to make sure that the translation data is valid.
|
|
|
|
name: Check Translations
|
|
|
|
env:
|
|
NODE_VERSION: 21.x
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: 'npm'
|
|
cache-dependency-path: ./package-lock.json
|
|
- run: npm ci
|
|
- run: npm run check-translations |