Drop support for End-of-Life Ruby and Rails #170
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: "pull_request" | |
jobs: | |
build: | |
name: "Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}" | |
runs-on: "ubuntu-latest" | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "3.1" | |
- "3.2" | |
- "3.3" | |
rails: | |
- "7.1" | |
- "7.2" | |
include: | |
- { ruby: "3.2", rails: "main" } | |
- { ruby: "3.3", rails: "main" } | |
env: | |
RAILS_VERSION: "${{ matrix.rails }}" | |
steps: | |
- uses: "actions/checkout@v2" | |
- name: "Install Ruby ${{ matrix.ruby }}" | |
uses: "ruby/setup-ruby@v1" | |
with: | |
rubygems: 3.3.13 | |
ruby-version: "${{ matrix.ruby }}" | |
- name: "Generate lockfile" | |
run: | | |
bundle config path vendor/bundle | |
bundle lock | |
- uses: "actions/cache@v1" | |
with: | |
path: "vendor/bundle" | |
key: bundle-${{ hashFiles('Gemfile.lock') }} | |
- name: "Build and test" | |
run: | | |
bin/setup | |
bin/rails test |