]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Switch to the Coveralls Action (#29478)
authorXhmikosR <xhmikosr@gmail.com>
Mon, 18 Nov 2019 19:03:43 +0000 (21:03 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 25 Nov 2019 11:12:53 +0000 (13:12 +0200)
This is the official way of using Coveralls with Actions. Also this brings back Coveralls for PRs.

.github/workflows/test.yml
package-lock.json
package.json

index a3c76ad6c4179de607c3cc6969ad8b9fdde24430..9f1b9fb573fa9e2a1c8dee773ca068f3bfd4af97 100644 (file)
@@ -69,8 +69,8 @@ jobs:
         if: matrix.node == 8
 
       - name: Run Coveralls
-        run: npm run coveralls
-        if: matrix.node == 8 && github.repository == 'twbs/bootstrap' && github.event_name == 'push'
-        env:
-          COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
-          COVERALLS_GIT_BRANCH: "${{ github.ref }}"
+        uses: coverallsapp/github-action@master
+        if: matrix.node == 8
+        with:
+          github-token: "${{ secrets.GITHUB_TOKEN }}"
+          path-to-lcov: "./js/coverage/lcov.info"
index c16e4997c0e637f1296d358db6e70a69d07f8588..9117f75198b22d0d3326cc4aa283a2cd9551e03d 100644 (file)
         "parse-json": "^4.0.0"
       }
     },
-    "coveralls": {
-      "version": "3.0.7",
-      "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.7.tgz",
-      "integrity": "sha512-mUuH2MFOYB2oBaA4D4Ykqi9LaEYpMMlsiOMJOrv358yAjP6enPIk55fod2fNJ8AvwoYXStWQls37rA+s5e7boA==",
-      "dev": true,
-      "requires": {
-        "growl": "~> 1.10.0",
-        "js-yaml": "^3.13.1",
-        "lcov-parse": "^0.0.10",
-        "log-driver": "^1.2.7",
-        "minimist": "^1.2.0",
-        "request": "^2.86.0"
-      },
-      "dependencies": {
-        "minimist": {
-          "version": "1.2.0",
-          "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
-          "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
-          "dev": true
-        }
-      }
-    },
     "create-error-class": {
       "version": "3.0.2",
       "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
       "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
       "dev": true
     },
-    "growl": {
-      "version": "1.10.5",
-      "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
-      "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==",
-      "dev": true
-    },
     "gzip-size": {
       "version": "4.1.0",
       "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-4.1.0.tgz",
         "invert-kv": "^1.0.0"
       }
     },
-    "lcov-parse": {
-      "version": "0.0.10",
-      "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz",
-      "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=",
-      "dev": true
-    },
     "leven": {
       "version": "2.1.0",
       "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz",
       "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
       "dev": true
     },
-    "log-driver": {
-      "version": "1.2.7",
-      "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz",
-      "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==",
-      "dev": true
-    },
     "log-symbols": {
       "version": "2.2.0",
       "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz",
index 80c060b50d8f8b3b07512d4a48f7b9a6374f9163..e14d2f6651ed7676063c8f8ffee4b23f2b4ca19c 100644 (file)
@@ -65,7 +65,6 @@
     "js-test-integration": "rollup --config js/tests/integration/rollup.bundle.js",
     "js-test-cloud": "cross-env BROWSER=true npm run js-test-karma",
     "lint": "npm-run-all --parallel js-lint css-lint",
-    "coveralls": "shx cat js/coverage/lcov.info | coveralls",
     "docs": "npm-run-all css-docs js-docs docs-compile docs-lint",
     "docs-compile": "bundle exec jekyll build",
     "docs-production": "cross-env JEKYLL_ENV=production npm run docs-compile",
     "broken-link-checker": "^0.7.8",
     "bundlesize": "^0.18.0",
     "clean-css-cli": "^4.3.0",
-    "coveralls": "^3.0.7",
     "cross-env": "^5.2.1",
     "eslint": "^5.16.0",
     "find-unused-sass-variables": "^0.6.0",