Skip to content

Commit 0e7d36a

Browse files
committed
Add test using BUNDLE_GEMFILE
1 parent e5b6990 commit 0e7d36a

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,23 @@ jobs:
113113
bundler: 2.1.4
114114
- run: bundle --version | grep -F 2.1.4
115115

116+
testGemfileMatrix:
117+
strategy:
118+
fail-fast: false
119+
matrix:
120+
gemfile: [ rails5, rails6 ]
121+
name: "Test with ${{ matrix.gemfile }} gemfile"
122+
runs-on: ubuntu-latest
123+
env:
124+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
125+
steps:
126+
- uses: actions/checkout@v2
127+
- uses: ./
128+
with:
129+
ruby-version: 2.6
130+
bundler-cache: true
131+
- run: bundle exec rails --version
132+
116133
lint:
117134
runs-on: ubuntu-20.04
118135
steps:

gemfiles/rails5.gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "rails", "~> 5.2.0"

gemfiles/rails6.gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "rails", "~> 6.0.0"

0 commit comments

Comments
 (0)