Add support for Active Record 7.1 #29
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 PR Builds | |
'on': | |
push: | |
branches: | |
- master | |
pull_request: | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: CI Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- '2.5' | |
- '2.7' | |
- '3.0' | |
activerecord: | |
- '5.1' | |
- '5.2' | |
- '6.0' | |
- '6.1' | |
- '7.0' | |
- '7.1' | |
exclude: | |
- ruby: '2.5' | |
activerecord: '7.0' | |
- ruby: '2.5' | |
activerecord: '7.1' | |
- ruby: '3.0' | |
activerecord: '5.1' | |
- ruby: '3.0' | |
activerecord: '5.2' | |
env: | |
BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord-${{ matrix.activerecord }}.gemfile" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "${{ matrix.ruby }}" | |
bundler-cache: true | |
- name: Run bundle update | |
run: bundle update | |
- name: Run tests | |
run: bundle exec rspec | |
- name: Run rubocop | |
run: bundle exec rubocop | |
- name: Coveralls Parallel | |
if: "${{ !env.ACT }}" | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
flag-name: run-${{ matrix.ruby }}-${{ matrix.activerecord }} | |
parallel: true | |
finish: | |
name: All CI Tests Passed | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
if: "${{ !env.ACT }}" | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
parallel-finished: true |