Skip to content

Commit

Permalink
Adds Github Action to Coveralls
Browse files Browse the repository at this point in the history
Adds a brief example to the coveralls section for Github Actions.

Signed-off-by: Troy Fontaine <troy.fontaine@mogo.ca>
  • Loading branch information
troyfontaine committed May 27, 2020
1 parent 0fa5b93 commit 2d793de
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ ignore:
- ProjectTestsGroup/*
```

And then in your `.travis.yml` or `circle.yml`, call `slather` after a successful build:
And then in your `.travis.yml` or `circle.yml` or `github-action.yml`, call `slather` after a successful build:

```yml
# .travis.yml
Expand All @@ -168,6 +168,20 @@ test:

```

```yml
# github-action.yml
myjob:
steps:
- run: |
bundle config path vendor/bundle
bundle install --without=documentation --jobs 4 --retry 3
- run: bundle exec slather
env:
GIT_BRANCH: ${{ github.event.pull_request.head.ref }}

```

#### Usage with Travis CI Pro

To use Coveralls with Travis CI Pro (for private repos), add following lines along with other settings to `.slather.yml`:
Expand Down

0 comments on commit 2d793de

Please sign in to comment.