Add Rails 8 to testing matrix #261
Workflow file for this run
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 Tests | |
on: | |
push: | |
branches: "main" | |
pull_request: | |
branches: "*" | |
jobs: | |
test: | |
name: "Ruby ${{ matrix.ruby }}, Rails ${{ matrix.gemfile }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
gemfile: | |
- "7.0" | |
- "7.1" | |
- "7.2" | |
- "8.0" | |
ruby: | |
- "3.1.6" | |
- "3.2.5" | |
- "3.3.5" | |
exclude: | |
- ruby: "3.1.6" | |
gemfile: "8.0" | |
env: | |
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile | |
RAILS_ENV: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Install Ruby ${{ matrix.ruby }}" | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: "Reset app database" | |
run: | | |
bundle exec rake db:drop | |
bundle exec rake db:setup | |
- name: "Run tests" | |
run: bundle exec rake |