Cached queries #75
Workflow file for this run
This file contains hidden or 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: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_JOBS: 4 | |
BUNDLE_RETRY: 3 | |
CI: true | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["2.7", "3.0"] | |
gemfile: ["gemfiles/rails6.gemfile"] | |
include: | |
- ruby: "2.7" | |
gemfile: "gemfiles/rails5.gemfile" | |
- ruby: "3.1" | |
gemfile: "gemfiles/rails7.gemfile" | |
- ruby: "3.2" | |
gemfile: "gemfiles/rails7.gemfile" | |
- ruby: "3.2" | |
gemfile: "gemfiles/railsmaster.gemfile" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v1 | |
with: | |
path: /home/runner/bundle | |
key: bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }} | |
restore-keys: | | |
bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}- | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Bundle install | |
run: | | |
bundle config path /home/runner/bundle | |
bundle config --global gemfile ${{ matrix.gemfile }} | |
bundle install | |
bundle update | |
- name: Run RSpec | |
run: | | |
bundle exec rspec | |
- name: Run Minitest | |
run: | | |
bundle exec rake test |