Skip to content

Commit 0453237

Browse files
separate install-deps
1 parent 450abff commit 0453237

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/project.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,32 @@ jobs:
6161
env:
6262
DD_INJECTION_ENABLED: 'true'
6363

64+
integration-playwright:
65+
strategy:
66+
matrix:
67+
version: [18, latest]
68+
runs-on: ubuntu-latest
69+
env:
70+
DD_SERVICE: dd-trace-js-integration-tests
71+
DD_CIVISIBILITY_AGENTLESS_ENABLED: 1
72+
DD_API_KEY: ${{ secrets.DD_API_KEY_CI_APP }}
73+
steps:
74+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
75+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
76+
with:
77+
node-version: ${{ matrix.version }}
78+
- uses: ./.github/actions/install
79+
# Install system dependencies for playwright
80+
- run: npx playwright install-deps
81+
- run: yarn test:integration:playwright
82+
env:
83+
NODE_OPTIONS: '-r ./ci/init'
84+
6485
integration-ci:
6586
strategy:
6687
matrix:
6788
version: [18, latest]
68-
framework: [cucumber, playwright, selenium, jest, mocha]
89+
framework: [cucumber, selenium, jest, mocha]
6990
runs-on: ubuntu-latest
7091
env:
7192
DD_SERVICE: dd-trace-js-integration-tests

integration-tests/playwright/playwright.spec.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,13 @@ versions.forEach((version) => {
4747
let sandbox, cwd, receiver, childProcess, webAppPort
4848

4949
before(async function () {
50-
// bump from 60 to 90 seconds because we also need to install dependencies and download chromium
50+
// bump from 60 to 90 seconds because playwright is heavy
5151
this.timeout(90000)
5252
sandbox = await createSandbox([`@playwright/test@${version}`, 'typescript'], true)
5353
cwd = sandbox.folder
5454
const { NODE_OPTIONS, ...restOfEnv } = process.env
55-
// Install system dependencies
56-
execSync('npx playwright install-deps', { cwd, env: restOfEnv })
5755
// Install chromium (configured in integration-tests/playwright.config.js)
58-
execSync('npx playwright install', { cwd, env: restOfEnv })
56+
execSync('npx playwright install', { cwd, env: restOfEnv, stdio: 'inherit' })
5957
webAppPort = await getPort()
6058
webAppServer.listen(webAppPort)
6159
})

0 commit comments

Comments
 (0)