Skip to content

Commit 126fe86

Browse files
authored
Merge pull request #85 from asonas/setup-ruby
Migrate to setup-ruby
2 parents 15076f3 + 2fa072f commit 126fe86

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,19 @@ on:
1212
schedule:
1313
- cron: "0 10 * * 5" # JST 19:00 (Fri)
1414

15-
env:
16-
RUBYOPT: -EUTF-8
17-
1815
jobs:
1916
test:
2017
runs-on: ubuntu-latest
2118

22-
container: ${{ matrix.ruby }}
23-
2419
strategy:
2520
fail-fast: false
2621

2722
matrix:
2823
ruby:
29-
- ruby:2.6
30-
- ruby:2.7
31-
- ruby:3.0
32-
- ruby:3.1
24+
- "2.6"
25+
- "2.7"
26+
- "3.0"
27+
- "3.1"
3328
gemfile:
3429
- faraday_2
3530

@@ -41,14 +36,10 @@ jobs:
4136
with:
4237
submodules: "true"
4338

44-
- name: Cache vendor/bundle
45-
uses: actions/cache@v3
46-
id: cache_gem
39+
- uses: ruby/setup-ruby@v1
4740
with:
48-
path: vendor/bundle
49-
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
50-
restore-keys: |
51-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
41+
ruby-version: ${{ matrix.ruby }}
42+
bundler-cache: true
5243

5344
- name: bundle update
5445
run: |

0 commit comments

Comments
 (0)