File tree Expand file tree Collapse file tree 9 files changed +21
-12
lines changed Expand file tree Collapse file tree 9 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 64
64
- " 20"
65
65
- " 22"
66
66
- " 24"
67
- include :
68
- - node : 18
69
- code-coverage : true
70
67
runs-on : ubuntu-latest
71
68
services :
72
69
memcached :
@@ -273,6 +270,11 @@ jobs:
273
270
with :
274
271
name : tests-coverage-cache-${{ github.run_number }}-22
275
272
path : .
273
+ - name : Download Test Artifacts (24)
274
+ uses : actions/download-artifact@v5
275
+ with :
276
+ name : tests-coverage-cache-${{ github.run_number }}-24
277
+ path : .
276
278
# Note: see comment in the compile job
277
279
- name : Set base and head commits
278
280
run : |
Original file line number Diff line number Diff line change 14
14
"version:update" : " nx run-many -t version:update" ,
15
15
"compile" : " nx run-many -t compile" ,
16
16
"compile:ci:affected" : " nx affected -t compile" ,
17
+ "list:affected" : " nx affected -t test-all-versions --graph=stdout | jq -c '.tasks.tasks[].target.project'" ,
17
18
"test" : " nx run-many -t test" ,
18
19
"test:ci:affected" : " nx affected -t test" ,
19
20
"test:browser" : " nx run-many -t test:browser" ,
20
21
"test:browser:ci:affected" : " nx affected -t test:browser" ,
21
- "test-all-versions" : " nx run-many --parallel=false -t test-all-versions" ,
22
- "test-all-versions:ci:affected" : " nx affected --parallel=false -t test-all-versions" ,
22
+ "test-all-versions" : " npm run --if-present test-all-versions --workspaces " ,
23
+ "test-all-versions:ci:affected" : " npm run list: affected | tail -n +5 | xargs -I {} -t npm run --if-present test-all-versions -w {} " ,
23
24
"test-merge-coverage:ci:affected" : " nx affected -t test-merge-coverage" ,
24
25
"test-services:start" : " docker compose -f ./test/docker-compose.yaml up -d --wait" ,
25
26
"test-services:stop" : " docker compose -f ./test/docker-compose.yaml down" ,
Original file line number Diff line number Diff line change 39
39
"lint:readme" : " node ../../scripts/lint-readme.js" ,
40
40
"prepublishOnly" : " npm run compile" ,
41
41
"tdd" : " npm run test -- --watch-extensions ts --watch" ,
42
- "test" : " nyc mocha --require '@opentelemetry/contrib-test-utils' 'test/**/*.test.ts'" ,
42
+ "test" : " nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/**/*.test.ts'" ,
43
43
"test-all-versions" : " tav" ,
44
+ "test-merge-coverage" : " nyc merge .nyc_output coverage/coverage-final.json" ,
44
45
"version:update" : " node ../../scripts/version-update.js" ,
45
46
"watch" : " tsc -w"
46
47
},
Original file line number Diff line number Diff line change 10
10
"directory" : " packages/instrumentation-cucumber"
11
11
},
12
12
"scripts" : {
13
- "test" : " nyc mocha 'test/**/*.test.ts'" ,
13
+ "test" : " nyc --no-clean mocha 'test/**/*.test.ts'" ,
14
14
"test-all-versions" : " tav" ,
15
+ "test-merge-coverage" : " nyc merge .nyc_output coverage/coverage-final.json" ,
15
16
"tdd" : " npm run test -- --watch-extensions ts --watch" ,
16
17
"clean" : " rimraf build/*" ,
17
18
"lint" : " eslint . --ext=ts,js,mjs" ,
Original file line number Diff line number Diff line change 19
19
"prepublishOnly" : " npm run compile" ,
20
20
"test" : " nyc --no-clean mocha 'test/**/*.test.ts'" ,
21
21
"test-all-versions" : " tav" ,
22
+ "test-merge-coverage" : " nyc merge .nyc_output coverage/coverage-final.json" ,
22
23
"tdd" : " npm run test -- --watch-extensions ts --watch" ,
23
24
"test:debug" : " cross-env RUN_REDIS_TESTS=true mocha --inspect-brk --no-timeouts 'test/**/*.test.ts'" ,
24
25
"test:with-services-env" : " cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm test" ,
Original file line number Diff line number Diff line change 22
22
"test-v5-v6" : " nyc mocha --require '@opentelemetry/contrib-test-utils' 'test/mongoose-common.test.ts' 'test/**/mongoose-v5-v6.test.ts'" ,
23
23
"test-v7-v8" : " nyc mocha --require '@opentelemetry/contrib-test-utils' 'test/mongoose-common.test.ts' 'test/**/mongoose-v7-v8.test.ts'" ,
24
24
"test:with-services-env" : " cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm test" ,
25
- "test-all-versions" : " tav" ,
25
+ "test-all-versions" : " tav" ,
26
26
"test-all-versions:with-services-env" : " cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm run test-all-versions" ,
27
+ "test-merge-coverage" : " nyc merge .nyc_output coverage/coverage-final.json" ,
27
28
"test-services:start" : " cd ../.. && npm run test-services:start mongodb" ,
28
29
"test-services:stop" : " cd ../.. && npm run test-services:stop mongodb" ,
29
30
"version:update" : " node ../../scripts/version-update.js"
Original file line number Diff line number Diff line change 18
18
"lint:readme" : " node ../../scripts/lint-readme.js" ,
19
19
"prepublishOnly" : " npm run compile" ,
20
20
"tdd" : " npm run test -- --watch-extensions ts --watch" ,
21
- "test" : " nyc mocha 'test/**/*.test.ts'" ,
21
+ "test" : " nyc --no-clean mocha 'test/**/*.test.ts'" ,
22
22
"test:debug" : " mocha --inspect-brk --no-timeouts 'test/**/*.test.ts'" ,
23
23
"test:with-services-env" : " cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm test" ,
24
24
"test-all-versions" : " tav" ,
25
25
"test-all-versions:with-services-env" : " cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm run test-all-versions" ,
26
+ "test-merge-coverage" : " nyc merge .nyc_output coverage/coverage-final.json" ,
26
27
"test-services:start" : " cd ../.. && npm run test-services:start postgres" ,
27
28
"test-services:stop" : " cd ../.. && npm run test-services:stop postgres" ,
28
29
"version:update" : " node ../../scripts/version-update.js" ,
Original file line number Diff line number Diff line change 18
18
"lint:readme" : " node ../../scripts/lint-readme.js" ,
19
19
"prepublishOnly" : " npm run compile" ,
20
20
"tdd" : " npm run test -- --watch-extensions ts --watch" ,
21
- "test-v2-v3" : " nyc mocha --require '@opentelemetry/contrib-test-utils' 'test/v2-v3/*.test.ts'" ,
22
- "test" : " nyc mocha --require '@opentelemetry/contrib-test-utils' 'test/v4-v5/*.test.ts'" ,
21
+ "test-v2-v3" : " nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/v2-v3/*.test.ts'" ,
22
+ "test" : " nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/v4-v5/*.test.ts'" ,
23
23
"test:debug" : " cross-env RUN_REDIS_TESTS=true mocha --inspect-brk --no-timeouts 'test/**/*.test.ts'" ,
24
24
"test:with-services-env" : " cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm test" ,
25
25
"test-all-versions" : " tav" ,
26
26
"test-all-versions:with-services-env" : " cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm run test-all-versions" ,
27
+ "test-merge-coverage" : " nyc merge .nyc_output coverage/coverage-final.json" ,
27
28
"test-services:start" : " cd ../.. && npm run test-services:start redis" ,
28
29
"test-services:stop" : " cd ../.. && npm run test-services:stop redis" ,
29
30
"version:update" : " node ../../scripts/version-update.js"
Original file line number Diff line number Diff line change 17
17
"lint:fix" : " eslint . --ext=ts,js,mjs --fix" ,
18
18
"lint:readme" : " node ../../scripts/lint-readme.js" ,
19
19
"prepublishOnly" : " npm run compile" ,
20
- "test" : " nyc mocha 'test/**/*.test.ts'" ,
20
+ "test" : " nyc --no-clean mocha 'test/**/*.test.ts'" ,
21
21
"test-all-versions" : " tav" ,
22
22
"test-merge-coverage" : " nyc merge .nyc_output coverage/coverage-final.json" ,
23
23
"version:update" : " node ../../scripts/version-update.js"
You can’t perform that action at this time.
0 commit comments