]> 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)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2019 19:03:43 +0000 (21:03 +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 96d74522ca20031ad59f2701af52d1cf85732167..8fa00e52167713a2935e1bbf12c5ae2ebeab9d17 100644 (file)
@@ -48,8 +48,8 @@ jobs:
           BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"
 
       - name: Run Coveralls
-        run: npm run coveralls
-        if: matrix.node == 10 && 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 == 10
+        with:
+          github-token: "${{ secrets.GITHUB_TOKEN }}"
+          path-to-lcov: "./js/coverage/lcov.info"
index 2d6c529d4909af9b0badff7d59a274af294ae9a6..eb50c7ba3a0479c8950e5045e12d3f2074dca56e 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"
-      }
-    },
     "create-error-class": {
       "version": "3.0.2",
       "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
       "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=",
       "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": "3.1.0",
       "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
       "integrity": "sha1-7GZi5IlkCO1KtsVCo5kLcswIACA=",
       "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": "3.0.0",
       "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz",
index b0b27de44b7bdcd55f670b6bb1d7f36bc03f372c..1556823c00c6c74344b36994b94b1d70698ad2b1 100644 (file)
@@ -20,7 +20,6 @@
   "scripts": {
     "start": "npm-run-all --parallel watch docs-serve",
     "bundlesize": "bundlesize",
-    "coveralls": "cat js/coverage/lcov.info | coveralls",
     "css": "npm-run-all css-compile css-prefix css-minify",
     "css-compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/ -o dist/css/",
     "css-lint": "npm-run-all --continue-on-error --parallel css-lint-*",
@@ -96,7 +95,6 @@
     "babel-plugin-istanbul": "^5.2.0",
     "bundlesize": "^0.18.0",
     "clean-css-cli": "^4.3.0",
-    "coveralls": "^3.0.7",
     "cross-env": "^6.0.3",
     "eslint": "^6.6.0",
     "eslint-config-xo": "^0.27.2",