From 837084496ab050f5ace1a878e1fdd7b010d9bfc9 Mon Sep 17 00:00:00 2001 From: Estelle Comment Date: Thu, 8 Feb 2024 17:24:32 +0100 Subject: [PATCH] Add i18n check to github actions --- .github/workflows/tchap_static_analysis.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/tchap_static_analysis.yaml b/.github/workflows/tchap_static_analysis.yaml index d4818bdae3..15a32174aa 100644 --- a/.github/workflows/tchap_static_analysis.yaml +++ b/.github/workflows/tchap_static_analysis.yaml @@ -75,6 +75,26 @@ jobs: - name: Run Linter run: "yarn run lint:style" + i18n: + name: "i18n check" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Get Node Version + id: node_version + run: echo ::set-output name=node_version::$(node -e 'console.log(require("./package.json").engines.node)') + - uses: actions/setup-node@v3 + with: + cache: "yarn" + node-version: ${{ steps.node_version.outputs.node_version }} + + # Needs branch matching as it inherits .stylelintrc.js from matrix-react-sdk + - name: Install Dependencies + run: "yarn install --pure-lockfile" + + - name: Run i18n-tchap + run: "yarn i18n-tchap" + # tchap : fix this https://github.com/tchapgouv/tchap-web-v4/issues/767 # analyse_dead_code: # name: "Analyse Dead Code"