SimpleCov, your test coverage files attached to each PR with GithubActions

Mohamed Hamda
Dec 15, 2020
Source https://www.coletiv.com/blog/android-github-actions-setup/

Something small, I wanted to share, nice I just discovered while playing around with( Github Actions) on a new side learning project!

it’s a workaround to have your test coverage files attached to each PR.

- I am using SimpleCov for code coverage in a rails project( as it’s free )

https://github.com/simplecov-ruby/simplecov

- using Upload-Artifact from GitHub actions allow you to upload files/folder!

https://github.com/actions/upload-artifact

  • include the coverage folder that runs on the CI(with the assets included)
    in your CI.yml file
ci.yml

in your .gitignore file, please add!

.gitignore file

I am not a professional Medium writer, but just wanted to share 😄

--

--