The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
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.yamlindex 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-emailsrun: 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 testsrun: |# Start the email server in the backgrounddiff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yamlindex 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-sharedrun: npx nx build twenty-shared- - name: Server / Run lint & typecheck+ - name: Server / Run lint, typecheck & lingui extractuses: ./.github/actions/nx-affectedwith: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:compileserver-previous-version-upgrade-mutation-guard:timeout-minutes: 5