Skip to content

Commit

Permalink
chore: updated job strategy matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonator committed Nov 22, 2023
1 parent f81fbc0 commit 98ac665
Showing 1 changed file with 52 additions and 26 deletions.
78 changes: 52 additions & 26 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,85 @@ jobs:

strategy:
matrix:
rails: ['5.2', '6.0', '6.1', '7.0', '7.1', 'master']
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2']
rails:
- "6.1"
- "7.0"
- "7.1"

ruby:
- "3.0"
- "3.1"
- "3.2"

exclude:
- rails: master
ruby: '2.6'
- rails: '7.1'
ruby: '2.6'
- rails: '7.1'
ruby: '3.1'
- rails: '7.0'
ruby: '2.6'
- rails: '7.0'
ruby: '3.1'
- rails: '6.0'
ruby: '3.0'
- rails: '6.0'
ruby: '3.1'
- rails: '6.0'
ruby: '3.2'
- rails: '5.2'
ruby: '2.7'
- rails: '5.2'
ruby: '3.0'
- rails: '5.2'
ruby: '3.1'
- rails: '5.2'
ruby: '3.2'
- rails: "7.1"

ruby: "3.2"

- rails: "7.1"

ruby: "3.1"

- rails: "7.1"

ruby: "3.0"

- rails: "7.0"

ruby: "3.2"

- rails: "7.0"

ruby: "3.1"

- rails: "7.0"

ruby: "3.0"

- rails: "6.1"

ruby: "3.2"

- rails: "6.1"

ruby: "3.1"

- rails: "6.1"

ruby: "3.0"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: ruby/setup-ruby@v1

with:
ruby-version: ${{ matrix.ruby }}

- name: Install toolchain

run: |
sudo apt-get update
sudo apt-get install \
build-essential \
libsqlite3-dev
- name: Install bundler

run: gem install bundler

- env:
RAILS_VERSION: ${{ matrix.rails }}

name: Install dependencies

run: bundle install

- env:
RAILS_VERSION: ${{ matrix.rails }}

name: Test

run: bundle exec rspec

0 comments on commit 98ac665

Please sign in to comment.