aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-11-22 13:45:41 +0200
committerNick Merwin <[email protected]>2019-11-25 13:22:46 -0800
commitf58f8b91a4ebb1834e03f8ea6de4d85105fa3a0b (patch)
treee8110c2a07dcff8925f5bee63639e91aaaf52d67 /README.md
parent0488f10fa53197af0c0cd5cdd9316cdef8980f18 (diff)
downloadnode-coveralls-f58f8b91a4ebb1834e03f8ea6de4d85105fa3a0b.tar.xz
node-coveralls-f58f8b91a4ebb1834e03f8ea6de4d85105fa3a0b.zip
README.md: Add GitHub Actions CI info.
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8ebd165..5e75ca4 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
[Coveralls.io](https://coveralls.io/) support for Node.js. Get the great coverage reporting of coveralls.io and add a cool coverage button (like the one above) to your README.
-Supported CI services: [Travis CI](https://travis-ci.org/), [CodeShip](https://codeship.com/), [CircleCI](https://circleci.com/), [Jenkins](https://jenkins.io/), [Gitlab CI](https://gitlab.com/), [AppVeyor](https://www.appveyor.com/), [Buildkite](https://buildkite.com/)
+Supported CI services: [Travis CI](https://travis-ci.org/), [CodeShip](https://codeship.com/), [CircleCI](https://circleci.com/), [Jenkins](https://jenkins.io/), [Gitlab CI](https://gitlab.com/), [AppVeyor](https://www.appveyor.com/), [Buildkite](https://buildkite.com/), [GitHub Actions CI](https://github.com/features/actions)
## Installation:
@@ -31,6 +31,7 @@ This library currently supports [Travis CI](https://travis-ci.org/) with no extr
- `COVERALLS_SERVICE_NAME` (the name of your build system)
- `COVERALLS_REPO_TOKEN` (the secret repo token from coveralls.io)
+- `COVERALLS_GIT_BRANCH` (the branch name)
There are optional environment variables for other build systems as well:
@@ -38,6 +39,18 @@ There are optional environment variables for other build systems as well:
- `COVERALLS_RUN_AT` (a date string for the time that the job ran. RFC 3339 dates work. This defaults to your build system's date/time if you don't set it.)
- `COVERALLS_PARALLEL` (more info here: <https://docs.coveralls.io/parallel-build-webhook>)
+### GitHub Actions CI
+
+If you are using GitHub Actions CI, you should look into [coverallsapp/github-action](https://github.com/coverallsapp/github-action).
+
+If you prefer to use this package you can do it like this:
+
+```yml
+env:
+ COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
+ COVERALLS_GIT_BRANCH: "${{ github.ref }}"
+```
+
### [Jest](https://jestjs.io/)
- Install [jest](https://jestjs.io/docs/en/getting-started)