Skip to content

Commit 8abc3a9

Browse files
committed
Coveralls.
1 parent 29fc412 commit 8abc3a9

File tree

4 files changed

+338
-2
lines changed

4 files changed

+338
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
run: |
3131
pnpm install
3232
pnpm run test
33+
- name: Report coveralls
34+
run: |
35+
ls -a
36+
curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls report ./coverage/lcov.info
37+
env:
38+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3339
publish:
3440
if: startsWith(github.ref, 'refs/tags/')
3541
needs:

.nycrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"all": true,
3+
"include": [
4+
"src/**/*.ts"
5+
]
6+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"compile:web": "node ./esbuild.js",
2323
"compile:web:watch": "node ./esbuild.js --watch",
2424
"compile": "run-p compile:ts compile:web",
25-
"test": "cross-env TSX_TSCONFIG_PATH=./test/tsconfig.json mocha",
26-
"test:watch": "cross-env TSX_TSCONFIG_PATH=./test/tsconfig.json mocha --watch",
25+
"test": "cross-env TSX_TSCONFIG_PATH=./test/tsconfig.json nyc mocha",
26+
"test:watch": "cross-env TSX_TSCONFIG_PATH=./test/tsconfig.json nyc mocha --watch",
2727
"format": "prettier . --check",
2828
"lint": "eslint ./src ./test"
2929
},
@@ -39,6 +39,7 @@
3939
"@types/sinon-chai": "^4.0.0",
4040
"chai": "^6.2.2",
4141
"chai-dom": "^1.12.1",
42+
"coveralls": "^3.1.1",
4243
"cross-env": "^10.1.0",
4344
"esbuild": "^0.27.2",
4445
"eslint": "^9.39.2",

0 commit comments

Comments
 (0)