15
15
rspec :
16
16
runs-on : ubuntu-latest
17
17
18
- env :
18
+ env : # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
19
+ BUNDLE_GEMFILE : ${{ github.workspace }}/gemfiles/${{ matrix.rails }}.gemfile
19
20
ORACLE_COOKIE : sqldev
20
21
ORACLE_FILE : oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
21
22
ORACLE_HOME : /u01/app/oracle/product/11.2.0/xe
76
77
- name : Checkout
77
78
uses : actions/checkout@v4
78
79
79
- - name : Setup Ruby
80
- uses : ruby/setup-ruby@v1
81
- with :
82
- ruby-version : ${{ matrix.ruby }}
83
-
84
80
- name : Set DB Adapter
85
81
env :
86
- RAILS_VERSION : ${{ matrix.rails }}
87
82
DB_ADAPTER : ${{ matrix.adapter }}
88
83
CUSTOM_ORACLE_FILE : ${{ secrets.CUSTOM_ORACLE_FILE }}
89
84
@@ -100,23 +95,18 @@ jobs:
100
95
sudo ln -s ${ORACLE_HOME}/lib/libnnz11.so /usr/lib/libnnz11.so
101
96
fi
102
97
103
- - name : Bundle
98
+ - name : Setup Ruby
99
+ uses : ruby/setup-ruby@v1
100
+ with :
101
+ ruby-version : ${{ matrix.ruby }}
102
+ bundler-cache : true
104
103
env :
105
- RUBY_VERSION : ${{ matrix.ruby }}
106
- RAILS_VERSION : ${{ matrix.rails }}
107
104
DB_ADAPTER : ${{ matrix.adapter }}
108
- BUNDLE_GEMFILE : gemfiles/${{ matrix.rails }}.gemfile
109
- run : |
110
- gem install bundler
111
- bundle config path vendor/bundle
112
- bundle install --jobs 4 --retry 3
113
105
114
106
- name : RSpec & publish code coverage
115
107
116
108
env :
117
- RAILS_VERSION : ${{ matrix.rails }}
118
109
DB_ADAPTER : ${{ matrix.adapter }}
119
- BUNDLE_GEMFILE : gemfiles/${{ matrix.rails }}.gemfile
120
110
CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
121
111
with :
122
112
coverageCommand : bin/rake
0 commit comments