Skip to content

Commit 08322b5

Browse files
authored
split playwright and cypress tests in ci (#8098)
1 parent 24339c2 commit 08322b5

17 files changed

Lines changed: 9362 additions & 7912 deletions

.github/workflows/test-optimization.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ jobs:
6565
matrix:
6666
node-version: [oldest, latest]
6767
playwright-version: [oldest, latest]
68-
name: integration-playwright (${{ matrix.playwright-version}}, node-${{ matrix.node-version }})
68+
spec:
69+
- playwright-reporting
70+
- playwright-efd
71+
- playwright-atr
72+
- playwright-test-management
73+
- playwright-active-test-span
74+
- playwright-impacted-tests
75+
name: integration-playwright (${{ matrix.playwright-version}}, node-${{ matrix.node-version }}, ${{ matrix.spec }})
6976
runs-on: ubuntu-latest
7077
permissions:
7178
id-token: write
@@ -111,6 +118,7 @@ jobs:
111118
env:
112119
NODE_OPTIONS: "-r ./ci/init"
113120
DD_API_KEY: ${{ steps.dd-sts.outputs.api_key }}
121+
SPEC: ${{ matrix.spec }}
114122

115123
integration-mocha:
116124
strategy:
@@ -235,9 +243,26 @@ jobs:
235243
# 6.7.0 is the minimum version we support in <=5
236244
# 10.2.0 is the minimum version we support in >=6
237245
# 14.5.4 is the latest version that supports Node 18
238-
# The logic to decide whether the tests run lives in integration-tests/cypress/cypress.spec.js
246+
# The logic to decide whether the tests run lives in the individual spec files
239247
cypress-version: [6.7.0, 10.2.0, 14.5.4, latest]
240248
module-type: ["commonJS", "esm"]
249+
spec:
250+
- cypress-reporting
251+
- cypress-itr
252+
- cypress-efd
253+
- cypress-atr
254+
- cypress-test-management
255+
- cypress-impacted-tests
256+
- cypress-final-status
257+
exclude:
258+
# eol = Node 16: shouldTestsRun() always returns false for DD_MAJOR >= 6
259+
- version: eol
260+
# 6.7.0 is only supported for DD_MAJOR <= 5; never runs on this branch
261+
- cypress-version: 6.7.0
262+
# Node 18 (oldest) only supports 10.2.0 and 14.5.4, not latest
263+
- version: oldest
264+
cypress-version: latest
265+
name: integration-cypress (${{ matrix.cypress-version }}, node-${{ matrix.version }}, ${{ matrix.module-type }}, ${{ matrix.spec }})
241266
runs-on: ubuntu-latest
242267
permissions:
243268
id-token: write
@@ -267,6 +292,7 @@ jobs:
267292
NODE_OPTIONS: "-r ./ci/init"
268293
CYPRESS_MODULE_TYPE: ${{ matrix.module-type }}
269294
OPTIONS_OVERRIDE: 1
295+
SPEC: ${{ matrix.spec }}
270296
DD_API_KEY: ${{ steps.dd-sts.outputs.api_key }}
271297

272298
integration-vitest:

0 commit comments

Comments
 (0)