Skip to content

Commit 03e8c67

Browse files
committed
chore: update amqplib test script
1 parent 17ea030 commit 03e8c67

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/pr-test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,12 @@ jobs:
229229
with:
230230
name: tests-coverage-cache-${{ github.run_number }}-22
231231
path: .
232-
- name: List instr folders
233-
run: ls -la plugins/node/instrumentation-undici
234-
- name: Merge coverage
235-
run: cd plugins/node/instrumentation-undici && npm run coverage:merge
232+
- name: Merge coverage (Delta)
233+
run: npm run coverage:merge:ci:affected
236234
- name: Check coverage
237-
run: find plugins/node/instrumentation-undici/coverage
238-
239-
# - name: Report Coverage
235+
run: find . | grep coverage-final
236+
237+
# - name: Report Coverage
240238
# uses: codecov/codecov-action@v5
241239
# env:
242240
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"test:browser:ci:affected": "nx affected -t test:browser --base=origin/main --head=HEAD",
2323
"test-all-versions": "nx run-many -t test-all-versions",
2424
"test-all-versions:ci:affected": "nx affected -t test-all-versions --base=origin/main --head=HEAD",
25+
"coverage:merge:ci:affected": "nx affected -t coverage:merge --base=origin/main --head=HEAD",
2526
"changelog": "lerna-changelog",
2627
"lint": "nx run-many -t lint && npm run lint:deps && npm run lint:readme && npm run lint:markdown && npm run lint:semconv-deps",
2728
"lint:fix": "nx run-many -t lint:fix && npm run lint:markdown:fix",

plugins/node/instrumentation-amqplib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lint:readme": "node ../../../scripts/lint-readme.js",
3535
"prepublishOnly": "npm run compile",
3636
"tdd": "npm run test -- --watch-extensions ts --watch",
37-
"test": "nyc mocha --require '@opentelemetry/contrib-test-utils' 'test/**/*.test.ts'",
37+
"test": "nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/**/*.test.ts'",
3838
"test-all-versions": "tav",
3939
"version:update": "node ../../../scripts/version-update.js",
4040
"watch": "tsc -w",

0 commit comments

Comments
 (0)