From 0fc55b298429d7e4560b66016bbb2f5cf71a1236 Mon Sep 17 00:00:00 2001 From: Brian Demers Date: Mon, 29 Nov 2021 15:36:46 -0500 Subject: [PATCH] Use Coveralls Github Action --- .github/workflows/main.yml | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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/",