Skip to content

Commit

Permalink
Add test using BUNDLE_GEMFILE
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Dec 21, 2020
1 parent e5b6990 commit 0e7d36a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,23 @@ jobs:
bundler: 2.1.4
- run: bundle --version | grep -F 2.1.4

testGemfileMatrix:
strategy:
fail-fast: false
matrix:
gemfile: [ rails5, rails6 ]
name: "Test with ${{ matrix.gemfile }} gemfile"
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v2
- uses: ./
with:
ruby-version: 2.6
bundler-cache: true
- run: bundle exec rails --version

lint:
runs-on: ubuntu-20.04
steps:
Expand Down
3 changes: 3 additions & 0 deletions gemfiles/rails5.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "rails", "~> 5.2.0"
3 changes: 3 additions & 0 deletions gemfiles/rails6.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "rails", "~> 6.0.0"

0 comments on commit 0e7d36a

Please sign in to comment.