Use project version of Ruby in Github actions
Topics: Ruby, Continuous integration, Ruby testing
This workflow configures GitHub Actions to use the Ruby version stored in .ruby-version.
Subtopics
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
- name: RuboCop
run: bin/rubocop -f github