Skip to content

Commit 165109e

Browse files
committed
Declare the gemfile globally
1 parent 143db02 commit 165109e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,15 @@ jobs:
7373
ruby: "3.4"
7474
- rails: "8.0"
7575
ruby: "3.1"
76-
76+
env:
77+
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.rb
7778
steps:
7879
- name: Checkout source
7980
uses: actions/checkout@v4
8081
- name: Setup ruby
8182
uses: ruby/setup-ruby@v1
8283
with:
8384
ruby-version: ${{ matrix.ruby }}
84-
env:
85-
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.rb
8685

8786
# MySQL db was created above, sqlite will be created during test suite,
8887
# when migrations occur, so we only need to create the postgres db. I
@@ -106,13 +105,11 @@ jobs:
106105
- name: Test, sqlite
107106
run: bundle exec rake test
108107
env:
109-
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.rb
110108
DB: sqlite
111109
- name: Test, mysql
112110
run: bundle exec rake test
113111
env:
114112
BACKTRACE: 1
115-
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.rb
116113
DB: mysql
117114
AUTHLOGIC_DB_NAME: authlogic
118115
AUTHLOGIC_DB_USER: root
@@ -122,7 +119,6 @@ jobs:
122119
run: bundle exec rake test
123120
env:
124121
BACKTRACE: 1
125-
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.rb
126122
DB: postgres
127123
AUTHLOGIC_DB_NAME: authlogic
128124
AUTHLOGIC_DB_USER: postgres

0 commit comments

Comments
 (0)