@@ -1263,14 +1263,63 @@ jobs:
12631263 use-artifact : ${{ steps.strategy.outputs.use-artifact }}
12641264
12651265 job_e2e_tests :
1266- name : E2E Tests (${{ matrix.shardIndex }}/${{ matrix.shardTotal }})
1266+ name : E2E Tests (${{ matrix.projectName }} ${{ matrix. shardIndex }}/${{ matrix.shardTotal }})
12671267 runs-on : ubuntu-latest
12681268 needs : [job_build_e2e_image, job_setup]
12691269 strategy :
12701270 fail-fast : true
12711271 matrix :
1272- shardIndex : [1, 2, 3, 4, 5, 6, 7, 8]
1273- shardTotal : [8]
1272+ include :
1273+ - projectName : Main
1274+ projects : main
1275+ analytics : ' false'
1276+ shardIndex : 1
1277+ shardTotal : 8
1278+ - projectName : Main
1279+ projects : main
1280+ analytics : ' false'
1281+ shardIndex : 2
1282+ shardTotal : 8
1283+ - projectName : Main
1284+ projects : main
1285+ analytics : ' false'
1286+ shardIndex : 3
1287+ shardTotal : 8
1288+ - projectName : Main
1289+ projects : main
1290+ analytics : ' false'
1291+ shardIndex : 4
1292+ shardTotal : 8
1293+ - projectName : Main
1294+ projects : main
1295+ analytics : ' false'
1296+ shardIndex : 5
1297+ shardTotal : 8
1298+ - projectName : Main
1299+ projects : main
1300+ analytics : ' false'
1301+ shardIndex : 6
1302+ shardTotal : 8
1303+ - projectName : Main
1304+ projects : main
1305+ analytics : ' false'
1306+ shardIndex : 7
1307+ shardTotal : 8
1308+ - projectName : Main
1309+ projects : main
1310+ analytics : ' false'
1311+ shardIndex : 8
1312+ shardTotal : 8
1313+ - projectName : Analytics
1314+ projects : analytics
1315+ analytics : ' true'
1316+ shardIndex : 1
1317+ shardTotal : 2
1318+ - projectName : Analytics
1319+ projects : analytics
1320+ analytics : ' true'
1321+ shardIndex : 2
1322+ shardTotal : 2
12741323 steps :
12751324 - name : Checkout
12761325 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -1279,6 +1328,7 @@ jobs:
12791328 uses : docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
12801329
12811330 - name : Pull or build Tinybird CLI Image
1331+ if : matrix.analytics == 'true'
12821332 run : |
12831333 COMPOSE_IMAGE="${COMPOSE_PROJECT_NAME:-ghost-dev}-tb-cli"
12841334 # Try pulling pre-built image from GHCR first (fast path)
@@ -1314,13 +1364,15 @@ jobs:
13141364 env :
13151365 GHOST_E2E_IMAGE : ${{ steps.load.outputs.image-tag }}
13161366 GHOST_E2E_SKIP_IMAGE_BUILD : ' true'
1367+ GHOST_E2E_ANALYTICS : ${{ matrix.analytics }}
13171368 run : bash ./e2e/scripts/prepare-ci-e2e-job.sh
13181369
13191370 - name : Run e2e tests in Playwright container
13201371 env :
13211372 TEST_WORKERS_COUNT : 1
13221373 GHOST_E2E_MODE : build
13231374 GHOST_E2E_IMAGE : ${{ steps.load.outputs.image-tag }}
1375+ E2E_PLAYWRIGHT_PROJECTS : ${{ matrix.projects }}
13241376 E2E_SHARD_INDEX : ${{ matrix.shardIndex }}
13251377 E2E_SHARD_TOTAL : ${{ matrix.shardTotal }}
13261378 E2E_RETRIES : 2
@@ -1332,21 +1384,23 @@ jobs:
13321384
13331385 - name : Stop E2E infra
13341386 if : always()
1387+ env :
1388+ GHOST_E2E_ANALYTICS : ${{ matrix.analytics }}
13351389 run : pnpm --filter @tryghost/e2e infra:down
13361390
13371391 - name : Upload blob report to GitHub Actions Artifacts
13381392 if : failure()
13391393 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
13401394 with :
1341- name : blob-report-${{ matrix.shardIndex }}
1395+ name : blob-report-${{ matrix.projectName }}-${{ matrix. shardIndex }}
13421396 path : e2e/blob-report
13431397 retention-days : 1
13441398
13451399 - name : Upload test results artifacts
13461400 if : failure()
13471401 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
13481402 with :
1349- name : test-results-${{ matrix.shardIndex }}
1403+ name : test-results-${{ matrix.projectName }}-${{ matrix. shardIndex }}
13501404 path : e2e/test-results
13511405 retention-days : 7
13521406
0 commit comments