diff options
| author | XhmikosR <[email protected]> | 2019-11-22 13:45:41 +0200 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2019-11-25 13:22:46 -0800 |
| commit | f58f8b91a4ebb1834e03f8ea6de4d85105fa3a0b (patch) | |
| tree | e8110c2a07dcff8925f5bee63639e91aaaf52d67 /README.md | |
| parent | 0488f10fa53197af0c0cd5cdd9316cdef8980f18 (diff) | |
| download | node-coveralls-f58f8b91a4ebb1834e03f8ea6de4d85105fa3a0b.tar.xz node-coveralls-f58f8b91a4ebb1834e03f8ea6de4d85105fa3a0b.zip | |
README.md: Add GitHub Actions CI info.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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) |
