Skip to content

Commit

Permalink
Merge pull request #2012 from tf/rails-6-workflow
Browse files Browse the repository at this point in the history
Run plugin specs in reusable workflow against Rails 6.1
  • Loading branch information
tf authored Oct 2, 2023
2 parents 9cb013d + 4397997 commit e84751f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/reusable-workflow-rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ jobs:
rspec:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- ruby-version: 2.6
- ruby-version: 3.2
rails-version: "~> 6.1"

env:
PAGEFLOW_RAILS_VERSION: ${{ matrix.rails-version }}
PAGEFLOW_DEPENDENCIES: ${{ matrix.rails-version && 'experimental' || 'default' }}

services:
mysql:
image: mysql:5.7
Expand Down Expand Up @@ -41,16 +53,16 @@ jobs:
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
key: ${{ runner.os }}-ruby-${{ matrix.ruby-version }}-gems-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
${{ runner.os }}-ruby-${{ matrix.ruby-version }}-gems-
# Ruby/Node

- name: Set up Ruby 2.6
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
ruby-version: ${{ matrix.ruby-version }}

# Dependencies

Expand Down

0 comments on commit e84751f

Please sign in to comment.