Skip to content

Commit

Permalink
Update workflow to work with multiple gemfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Feb 8, 2024
1 parent 7d30b12 commit 5ff6d47
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ jobs:
- 3.1
- 3.2
- 3.3
rails:
- 6.0.0
- 6.1.0
- 7.0.1
- 7.1.2
gemfile:
- gemfiles/rails_6_0.gemfile
- gemfiles/rails_6_1.gemfile
- gemfiles/rails_7_0.gemfile
- gemfiles/rails_7_1.gemfile
exclude: # These Rails versions are too new for the respective Ruby versions, or vice-versa
- ruby: 3.0
rails: 6.0.0
gemfile: gemfiles/rails_6_0.gemfile
- ruby: 3.1
rails: 6.0.0
gemfile: gemfiles/rails_6_0.gemfile
- ruby: 3.2
rails: 6.0.0
gemfile: gemfiles/rails_6_0.gemfile
- ruby: 3.3
rails: 6.0.0
gemfile: gemfiles/rails_6_0.gemfile
env:
PERCONA_DB_USER: root
PERCONA_DB_PASSWORD: root
RAILS_VERSION: "~> ${{ matrix.rails }}"
GEMFILE: ${{ matrix.gemfile }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -51,20 +51,14 @@ jobs:
lint:
strategy:
fail-fast: false
matrix:
ruby:
- 2.7
rails:
- 6.1.0
env:
PERCONA_DB_USER: root
PERCONA_DB_PASSWORD: root
RAILS_VERSION: "~> ${{ matrix.rails }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: 3.0
bundler-cache: true
- run: bundle exec rubocop --parallel

0 comments on commit 5ff6d47

Please sign in to comment.