From d0bebdf6525933db59308cc33bc5f8a1dcc97dc3 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 16 Jul 2020 19:37:08 +0300 Subject: CI: Fix coveralls --- .github/workflows/test.yml | 8 ++++---- package.json | 7 +++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2dbff35..b55d243 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,7 +77,7 @@ jobs: diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt - name: Run Coveralls - run: npm run coveralls - if: matrix.node == 12 && github.repository == 'twbs/bootlint' && github.event_name == 'push' - env: - COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}" + uses: coverallsapp/github-action@master + if: matrix.node == 12 && github.repository == 'twbs/bootlint' + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/package.json b/package.json index 041eeab..b85e949 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "browserify": "browserify src/bootlint.js | node build/stamp.js > dist/browser/bootlint.js", "build": "npm run browserify && npm run minify", "dist": "npm run build", - "coveralls": "nyc report --reporter=text-lcov | coveralls", "eslint": "eslint --cache-location .cache/.eslintcache --report-unused-disable-directives .", "lint": "npm run eslint", "minify": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"includeSources,url=bootlint.min.js.map\" --output dist/browser/bootlint.min.js dist/browser/bootlint.js", @@ -39,7 +38,6 @@ "devDependencies": { "async": "^3.2.0", "browserify": "^16.5.1", - "coveralls": "^3.1.0", "eslint": "^5.16.0", "jquery": "^3.5.1", "node-qunit-phantomjs": "^2.1.1", @@ -65,6 +63,11 @@ "nyc": { "include": [ "src/**/*.js" + ], + "reporter": [ + "html", + "lcov", + "text-summary" ] }, "engines": { -- cgit v1.2.3