Skip to content

Commit 5b4e1b4

Browse files
committed
chore: upload test artifacts
1 parent 58702ed commit 5b4e1b4

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/pr-test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,16 @@ jobs:
191191
- name: Unit tests (Delta)
192192
run: npm run test-all-versions:ci:changed
193193
# TODO: save coverage for later
194-
# - name: Upload Test Artifacts
195-
# uses: actions/upload-artifact@v4
196-
# with:
197-
# name: tests-coverage-cache-${{ github.run_number }}-${{ matrix.node }}
198-
# path: .nx
199-
# include-hidden-files: true
200-
# if-no-files-found: error
201-
# retention-days: 1
194+
- name: Upload Test Artifacts
195+
uses: actions/upload-artifact@v4
196+
with:
197+
name: tests-coverage-cache-${{ github.run_number }}-${{ matrix.node }}
198+
include-hidden-files: true
199+
if-no-files-found: error
200+
retention-days: 1
201+
path: |
202+
**/.nyc_output/**
203+
**/coverage/**
202204
# TODO: how to put back everythign in coverage???
203205
# test-coverage-report:
204206
# runs-on: ubuntu-latest

plugins/node/instrumentation-undici/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
"prepublishOnly": "npm run compile",
1010
"setup:dev": "nx run-many -t compile -p @opentelemetry/instrumentation-undici",
1111
"compile": "tsc -p .",
12-
"test": "nyc mocha test/**/*.test.ts",
12+
"test": "nyc --no-clean mocha test/**/*.test.ts",
1313
"test-all-versions": "tav",
1414
"tdd": "npm run test -- --watch-extensions ts --watch",
1515
"clean": "rimraf build/*",
1616
"lint": "eslint . --ext .ts",
1717
"lint:fix": "eslint . --ext .ts --fix",
1818
"watch": "tsc -w",
19-
"version:update": "node ../../../scripts/version-update.js",
20-
"echo": "echo hi"
19+
"version:update": "node ../../../scripts/version-update.js"
2120
},
2221
"keywords": [
2322
"opentelemetry",

0 commit comments

Comments
 (0)