File tree Expand file tree Collapse file tree 3 files changed +14
-22
lines changed Expand file tree Collapse file tree 3 files changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,20 @@ jobs:
47
47
# On the fail-fast: true, it cancels all in-progress jobs
48
48
# if any matrix job fails unlike Travis fast_finish.
49
49
fail-fast : false
50
+ env :
51
+ BUNDLE_WITHOUT : development
50
52
steps :
51
- - uses : actions/checkout@v2
53
+ - uses : actions/checkout@v3
54
+ - name : Install openssl
55
+ if : matrix.os == 'macos-latest'
56
+ run : |
57
+ brew update
58
+ brew install openssl
52
59
# https://github.com/ruby/setup-ruby
53
60
- uses : ruby/setup-ruby@v1
54
61
with :
55
62
ruby-version : ${{ matrix.ruby }}
56
- - name : Install openssl
57
- if : matrix.os == 'macos-latest'
58
- run : |
59
- brew update
60
- brew install openssl
61
- - run : ruby -v
62
- - run : bundle install --without development
63
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
63
64
- if : matrix.db != ''
64
65
run : echo 'DB=${{ matrix.db }}' >> $GITHUB_ENV
65
66
- run : sudo echo "127.0.0.1 mysql2gem.example.com" | sudo tee -a /etc/hosts
Original file line number Diff line number Diff line change 21
21
# if any matrix job fails unlike Travis fast_finish.
22
22
fail-fast : false
23
23
steps :
24
- - uses : actions/checkout@v2
24
+ - uses : actions/checkout@v3
25
25
- run : docker build -t mysql2 -f ci/Dockerfile_${{ matrix.distro }} --build-arg IMAGE=${{ matrix.image }} .
26
26
# Add the "--cap-add=... --security-opt seccomp=..." options
27
27
# as a temporary workaround to avoid the following issue
Original file line number Diff line number Diff line change @@ -5,23 +5,14 @@ on: [push, pull_request]
5
5
jobs :
6
6
build :
7
7
runs-on : ubuntu-latest
8
-
8
+ env :
9
+ BUNDLE_WITHOUT : development
9
10
steps :
10
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v3
11
12
- name : Set up Ruby 2.4
12
13
uses : ruby/setup-ruby@v1
13
14
with :
14
15
ruby-version : 2.4
15
- - name : Cache gems
16
- uses : actions/cache@v1
17
- with :
18
- path : vendor/bundle
19
- key : ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
20
- restore-keys : |
21
- ${{ runner.os }}-rubocop-
22
- - name : Install gems
23
- run : |
24
- bundle config path vendor/bundle
25
- bundle install --jobs 4 --retry 3
16
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
26
17
- name : Run RuboCop
27
18
run : bundle exec rubocop
You can’t perform that action at this time.
0 commit comments