diff --git a/.github/workflows/ci-emails.yaml b/.github/workflows/ci-emails.yaml index d6ed4c2608..68e8e549d4 100644 --- a/.github/workflows/ci-emails.yaml +++ b/.github/workflows/ci-emails.yaml @@ -35,6 +35,10 @@ jobs: uses: ./.github/actions/yarn-install - name: Build twenty-emails run: npx nx build twenty-emails + - name: Extract translations (lingui) + run: npx nx run twenty-emails:lingui:extract + - name: Compile translations (lingui) + run: npx nx run twenty-emails:lingui:compile - name: Run email tests run: | # Start the email server in the background diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index 22dca6e821..f783d857f4 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -77,11 +77,17 @@ jobs: uses: ./.github/actions/yarn-install - name: Build twenty-shared run: npx nx build twenty-shared - - name: Server / Run lint & typecheck + - name: Server / Run lint, typecheck & lingui extract uses: ./.github/actions/nx-affected with: tag: scope:backend - tasks: lint,typecheck + tasks: lint,typecheck,lingui:extract + # Separate step so compile never races extract on the .po files. + - name: Server / Run lingui compile + uses: ./.github/actions/nx-affected + with: + tag: scope:backend + tasks: lingui:compile server-previous-version-upgrade-mutation-guard: timeout-minutes: 5