Remove versões do ruby não compativel com o i-Diário #3
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_target: | |
schedule: | |
- cron: "6 20 * * 6" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "2.5.0" | |
- "2.5" | |
- "2.6.0" | |
- "2.6" | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Gems cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/gems | |
key: gems-${{ matrix.ruby }}-${{ hashFiles('*.gemspec', 'Gemfile') }}-${{ github.sha }} | |
restore-keys: | | |
gems-${{ matrix.ruby }}-${{ hashFiles('*.gemspec', 'Gemfile') }}- | |
gems-${{ matrix.ruby }}- | |
- name: Install dependencies | |
run: | | |
gem install bundler | |
bundle config path ~/gems | |
bundle install --jobs 4 --retry 3 | |
- name: Run tests | |
run: bundle exec rake |