Run automatic tests in CI workflow #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
# Run `bundle install` and cache all installed gems automatically | |
bundler-cache: true | |
- name: Install package dependencies using Bundler | |
run: bundle install | |
- name: Run RuboCop | |
run: bundle exec rubocop --parallel | |
- name: Run tests | |
run: bundle exec rake |