Codecast: Create a RubyGem 27: Add Rubocop to Github Actions


This is the 27th video in the NerdDice create a RubyGem series. In this video, Mike configures the NerdDice project to run a Rubocop GitHub action each time there is a push or pull request to the remote repository.

This video covers:

  • 00:00:12 Introduction
  • 00:00:45 Tweak previous CI version to run on any remote push or pull request and use ruby/setup-ruby@v1
  • 00:01:56 Add Rubocop to the existing GitHub action
  • 00:04:52 Push new branch to origin. Troubleshoot YAML syntax error
  • 00:07:18 Push again. Get rid of matrix attribute for single Ruby version
  • 00:10:02 Push fix. Action now passes.
  • 00:10:59 Intentionally introduce error to make sure it fails
  • 00:12:54 Fix intentional error. CI passes again
  • 00:14:02 Interactive rebase to squash commits
  • 00:15:33 Open pull request. Verify action runs and completes. Merge.
, , , ,

Leave a Reply