File tree 5 files changed +30
-12
lines changed
5 files changed +30
-12
lines changed Original file line number Diff line number Diff line change 28
28
- run : sudo sysctl -w kernel.core_pattern='|/bin/false'
29
29
- run : yarn test:integration
30
30
31
+ integration-ci :
32
+ strategy :
33
+ matrix :
34
+ version : [14, latest]
35
+ framework : [cucumber, cypress, playwright]
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/checkout@v3
39
+ - uses : ./.github/actions/node/setup
40
+ - run : yarn install
41
+ - uses : actions/setup-node@v3
42
+ with :
43
+ node-version : ${{ matrix.version }}
44
+ - run : yarn test:integration:${{ matrix.framework }}
45
+
31
46
lint :
32
47
runs-on : ubuntu-latest
33
48
steps :
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ const {
10
10
createSandbox,
11
11
getCiVisAgentlessConfig,
12
12
getCiVisEvpProxyConfig
13
- } = require ( './helpers' )
14
- const { FakeCiVisIntake } = require ( './ci-visibility-intake' )
13
+ } = require ( '.. /helpers' )
14
+ const { FakeCiVisIntake } = require ( '.. /ci-visibility-intake' )
15
15
const {
16
16
TEST_STATUS ,
17
17
TEST_COMMAND ,
@@ -23,7 +23,7 @@ const {
23
23
TEST_MODULE_ITR_SKIPPING_ENABLED ,
24
24
TEST_ITR_TESTS_SKIPPED ,
25
25
TEST_CODE_COVERAGE_LINES_TOTAL
26
- } = require ( '../packages/dd-trace/src/plugins/util/test' )
26
+ } = require ( '../../ packages/dd-trace/src/plugins/util/test' )
27
27
28
28
const isOldNode = semver . satisfies ( process . version , '<=12' )
29
29
const versions = [ '7.0.0' , isOldNode ? '8' : 'latest' ]
Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ const {
10
10
createSandbox,
11
11
getCiVisAgentlessConfig,
12
12
getCiVisEvpProxyConfig
13
- } = require ( './helpers' )
14
- const { FakeCiVisIntake } = require ( './ci-visibility-intake' )
15
- const webAppServer = require ( './ci-visibility/web-app-server' )
13
+ } = require ( '.. /helpers' )
14
+ const { FakeCiVisIntake } = require ( '.. /ci-visibility-intake' )
15
+ const webAppServer = require ( '.. /ci-visibility/web-app-server' )
16
16
const {
17
17
TEST_STATUS ,
18
18
TEST_COMMAND ,
19
19
TEST_MODULE ,
20
20
TEST_FRAMEWORK_VERSION ,
21
21
TEST_TOOLCHAIN
22
- } = require ( '../packages/dd-trace/src/plugins/util/test' )
22
+ } = require ( '../../ packages/dd-trace/src/plugins/util/test' )
23
23
24
24
// TODO: remove when 2.x support is removed.
25
25
// This is done because from playwright@>=1.22.0 node 12 is not supported
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ const {
10
10
createSandbox,
11
11
getCiVisAgentlessConfig,
12
12
getCiVisEvpProxyConfig
13
- } = require ( './helpers' )
14
- const { FakeCiVisIntake } = require ( './ci-visibility-intake' )
15
- const webAppServer = require ( './ci-visibility/web-app-server' )
16
- const { TEST_STATUS } = require ( '../packages/dd-trace/src/plugins/util/test' )
13
+ } = require ( '.. /helpers' )
14
+ const { FakeCiVisIntake } = require ( '.. /ci-visibility-intake' )
15
+ const webAppServer = require ( '.. /ci-visibility/web-app-server' )
16
+ const { TEST_STATUS } = require ( '../../ packages/dd-trace/src/plugins/util/test' )
17
17
18
18
// TODO: remove when 2.x support is removed.
19
19
// This is done because from playwright@>=1.22.0 node 12 is not supported
Original file line number Diff line number Diff line change 32
32
"test:plugins:upstream" : " node ./packages/dd-trace/test/plugins/suite.js" ,
33
33
"test:profiler" : " tap \" packages/dd-trace/test/profiling/**/*.spec.js\" " ,
34
34
"test:profiler:ci" : " npm run test:profiler -- --coverage --nyc-arg=--include=\" packages/dd-trace/src/profiling/**/*.js\" " ,
35
- "test:integration" : " mocha --colors --timeout 30000 \" integration-tests/**/*.spec.js\" " ,
35
+ "test:integration" : " mocha --colors --timeout 30000 \" integration-tests/*.spec.js\" " ,
36
+ "test:integration:cucumber" : " mocha --colors --timeout 30000 \" integration-tests/cucumber/*.spec.js\" " ,
37
+ "test:integration:cypress" : " mocha --colors --timeout 30000 \" integration-tests/cypress/*.spec.js\" " ,
38
+ "test:integration:playwright" : " mocha --colors --timeout 30000 \" integration-tests/playwright/*.spec.js\" " ,
36
39
"test:shimmer" : " mocha --colors 'packages/datadog-shimmer/test/**/*.spec.js'" ,
37
40
"test:shimmer:ci" : " nyc --no-clean --include 'packages/datadog-shimmer/src/**/*.js' -- npm run test:shimmer" ,
38
41
"leak:core" : " node ./scripts/install_plugin_modules && (cd packages/memwatch && yarn) && NODE_PATH=./packages/memwatch/node_modules node --no-warnings ./node_modules/.bin/tape 'packages/dd-trace/test/leak/**/*.js'" ,
You can’t perform that action at this time.
0 commit comments