diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e40ca1d..42b50e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,3 +24,8 @@ jobs: node-version: '${{ matrix.node_version }}' - run: npm install - run: npm test + + - name: Publish to coveralls.io + uses: coverallsapp/github-action@1.1.3 + with: + github-token: '${{ github.token }}' diff --git a/package.json b/package.json index 7e8a036..08e4420 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "types": "index.d.ts", "scripts": { "lint": "eslint .", - "test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly test/ -- -R spec --no-timeouts; cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; rm -rf ./coverage", + "test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly test/ -- -R spec --no-timeouts", "test-watch": "mocha --timeout=5000 --reporter dot --check-leaks -w ./*.js test/ ", "test-debug": "mocha --timeout=5000 --debug --reporter dot --check-leaks -w ./*.js test/ ", "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --timeout=5000 --reporter dot --check-leaks test/",