Skip to content

The open alternative to Salesforce, designed for AI.

ci(server,emails): run lingui extract & compile on PRs to gate i18n breakage (#22086)

Paul Rastoin5e5c8e0956cf
diff --git a/.github/workflows/ci-emails.yaml b/.github/workflows/ci-emails.yaml
index d6ed4c2608b..68e8e549d42 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 22dca6e821a..f783d857f48 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