The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Add GraphQL Generation Check to CI Workflow (#9742)
shubham yadav47c2c774e395
diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yamlindex b72f73563b8..ba7a40e342b 100644--- a/.github/workflows/ci-server.yaml+++ b/.github/workflows/ci-server.yaml@@ -97,6 +97,19 @@ jobs:exit 1fi+ - name: GraphQL / Check for Pending Generation+ if: steps.changed-files.outputs.any_changed == 'true'+ run: |+ GRAPHQL_GENERATE_OUTPUT=$(npx nx run twenty-front:graphql:generate || true)+ GRAPHQL_METADATA_OUTPUT=$(npx nx run twenty-front:graphql:generate --configuration=metadata || true)+ if [[ $GRAPHQL_GENERATE_OUTPUT == *"No changes detected"* && $GRAPHQL_METADATA_OUTPUT == *"No changes detected"* ]]; then+ echo "GraphQL generation check passed."+ else+ echo "::error::Unexpected GraphQL changes detected. Please run the required commands and commit the changes."+ echo "$GRAPHQL_GENERATE_OUTPUT"+ echo "$GRAPHQL_METADATA_OUTPUT"+ exit 1+ fi- name: Save server setupuses: ./.github/workflows/actions/save-cachewith: