Setting up GitHub Actions #2
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
name: Rspec and Rubocop | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: ['3.0.4', '3.1.2','3.2.0'] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/[email protected] | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Rubocop | |
env: | |
RAILS_ENV: test | |
run: | | |
bundle exec rubocop | |
- name: Minitest | |
env: | |
RAILS_ENV: test | |
run: | | |
bundle exec rake test |