Skip to content

Commit d20282c

Browse files
try publishing coverage report as an artifact.
1 parent 85226d6 commit d20282c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
run: npm install
4747
- name: Check code coverage
4848
run: npm run test:coverage
49+
- name: Upload coverage report
50+
if: always()
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: coverage-report
54+
path: coverage/
4955

5056
typecheck:
5157
runs-on: ubuntu-latest

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"unpkg": "dist/idiomorph.min.js",
2121
"scripts": {
2222
"test": "web-test-runner",
23-
"test:coverage": "web-test-runner && node test/lib/ensure-full-coverage.js",
23+
"test:coverage": "npm run ci && node test/lib/ensure-full-coverage.js",
2424
"test:debug": "web-test-runner --manual --open",
2525
"test:move-before": "USE_MOVE_BEFORE=1 web-test-runner",
2626
"ci": "web-test-runner --fail-only --playwright --browsers chromium firefox webkit",

0 commit comments

Comments
 (0)