This is the 28th video in the NerdDice create a RubyGem series. In this video, Mike signs up for the Coveralls Open Source plan, adds test coverage to the gem and incorporates it into the GitHub actions for the gem.
This video covers:
- 00:00:12 Sign up for Coveralls Open Source. Muddle through upsell and authorize GitHub account
- 00:03:12 Use tagliala/coveralls-ruby-reborn instead of lemurheavy/coveralls-ruby due to more active gem maintainance activity
- 00:03:44 Update gemspec dependencies and bundle
- 00:07:06 Update spec_helper.rb
- 00:10:37 Add to GitHub action (note: missed finish block)
- 00:12:08 Attempt first push. (Fail due to RuboCop and missing Lcov file)
- 00:14:52 Troubleshoot Lcov file not found
- 00:20:29 Push again. Require error. Add simplecov-lcov as a development dependency in gemspec
- 00:22:49 Push again. Fix Ruby errors in spec_helper
- 00:25:30 Push again. Back to lcov file not found. Remove Coveralls calls from spec_helper
- 00:26:42 Push again. Action passes but not interacting with Coveralls. Add Coveralls badge to README
- 00:28:22 Add finish action to GitHub actions. Iterate on incorrect name reference in YAML.
- 00:30:38 Push working and writing to Coveralls!
- 00:31:14 Clean up commented code, squash commits, merge PR, validate badge in README working as intended.