(i18n) install jest and add tests

We install Jest to test our i18n package.
We tests:
  - the extraction of the translations on the Desk app fo crowdin
  - the formatings of the translations from crowdin to the app
  - we check that all the translations are present in the app
We connect the tests to the CI.
This commit is contained in:
Anthony LC
2024-01-24 15:19:49 +01:00
committed by Anthony LC
parent 3d0824e023
commit 801cb98e15
9 changed files with 223 additions and 12 deletions

View File

@@ -58,24 +58,30 @@ jobs:
exit 1
fi
test-front-desk:
test-front:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/frontend/apps/desk
working-directory: src/frontend/
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: src/frontend/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test Desk App
run: yarn test
- name: Test App
run: yarn app:test
- name: Test Translations
run: yarn i18n:test
lint-front:
runs-on: ubuntu-latest