Skip to content

Commit d459874

Browse files
committed
wip
1 parent ba6400b commit d459874

File tree

4 files changed

+114
-2
lines changed

4 files changed

+114
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,12 @@ jobs:
3737
if: matrix.node-version == 24
3838
with:
3939
token: ${{ secrets.CODECOV_TOKEN }}
40+
report-type: coverage
4041
files: ./coverage/lcov.info
4142
disable_search: true
43+
- name: Upload test results to Codecov
44+
if: ${{ !cancelled() }}
45+
uses: codecov/codecov-action@v6
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}
48+
report-type: test_results

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist/
44
mise.toml
55
/*.tgz
66
/coverage
7-
*.local.*
7+
*.local.*
8+
/test-results.xml

package-lock.json

Lines changed: 103 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"scripts": {
3333
"build": "npm run clean && tsc -b",
3434
"clean": "del-cli ./dist/*",
35-
"coverage": "npm run build && c8 --100 mocha 'dist/test/**/*.js'",
35+
"coverage": "npm run build && c8 --100 -- mocha --reporter mocha-junit-reporter 'dist/test/**/*.js'",
3636
"eslint:check": "eslint .",
3737
"eslint:fix": "eslint . --fix",
3838
"fix": "npm run eslint:fix && npm run prettier:fix",
@@ -63,6 +63,7 @@
6363
"eslint-config-prettier": "^10",
6464
"globals": "^17",
6565
"mocha": "^11",
66+
"mocha-junit-reporter": "^2.2.1",
6667
"prettier": "^3",
6768
"prettier-plugin-packagejson": "^3",
6869
"ts-node": "^10",

0 commit comments

Comments
 (0)