Skip to content

The open alternative to Salesforce, designed for AI.

fix(ci): gate the secure integration suite with nx affected (#26717)

Félix Malfaitd062bf1fc9b3
diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml
index f9e223734c4..3615d1f6ce6 100644
--- a/.github/workflows/ci-server.yaml
+++ b/.github/workflows/ci-server.yaml
@@ -346,10 +346,14 @@ jobs:
args: ${{ format('--shard={0}/{1}', matrix.shard, env.SHARD_COUNTER) }}
# The secure-deployment suite boots the app as a production https
# deployment (SERVER_URL is env-only, forced by its jest config), so it
- # cannot ride the main run. One shard is enough.
+ # cannot ride the main run. One shard is enough. Gated like the main run
+ # because it reuses the database that run sets up.
- name: Server / Run secure-deployment integration tests
if: matrix.shard == 1
- run: npx nx run twenty-server:test:integration:secure
+ uses: ./.github/actions/nx-affected
+ with:
+ tag: scope:backend
+ tasks: 'test:integration:secure'
cross-version-upgrade:
needs: [upgrade-changed-files-check, server-build]