Checks #170
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: Checks | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * 1' # 6am every Monday | |
jobs: | |
unit_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2'] | |
rubocop: ['0.63.1', '0.81.0', '0.84.0', '0.85.0', '0.86.0', '0.87.0', '< 1.0', '1.0.0', '1.29.1', '1.30.0', '1.38.0', '< 2.0'] | |
include: | |
- ruby: '2.3' | |
rubocop: '0.63.1' | |
- ruby: '2.3' | |
rubocop: '0.81.0' | |
exclude: | |
- ruby: '2.4' | |
rubocop: '1.29.1' | |
- ruby: '2.4' | |
rubocop: '1.30.0' | |
- ruby: '2.4' | |
rubocop: '1.38.0' | |
- ruby: '2.5' | |
rubocop: '1.29.1' | |
- ruby: '2.5' | |
rubocop: '1.30.0' | |
- ruby: '2.5' | |
rubocop: '1.38.0' | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: use specific rubocop version | |
run: echo "gem 'rubocop', '${{ matrix.rubocop }}'" > Gemfile.local | |
- name: use specific rubocop-ast version (if required) | |
if: matrix.rubocop == '0.84.0' || matrix.rubocop == '0.85.0' | |
run: echo "gem 'rubocop-ast', '< 0.7.0'" >> Gemfile.local | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: rake spec | |
run: bundle exec rake spec |