File tree Expand file tree Collapse file tree 1 file changed +23
-18
lines changed Expand file tree Collapse file tree 1 file changed +23
-18
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
- on :
4
- push :
5
- branches :
6
- - main
7
- - ' *'
8
- pull_request :
9
- branches :
10
- - main
11
-
2
+ " on " :
3
+ push :
4
+ branches :
5
+ - main
6
+ - " *"
7
+ pull_request :
8
+ branches :
9
+ - main
12
10
jobs :
13
11
ci :
14
12
name : Ruby ${{ matrix.ruby }}
15
13
runs-on : ${{ matrix.os }}-latest
16
-
17
14
strategy :
18
15
fail-fast : false
19
16
matrix :
20
- os : [ ubuntu ]
21
- ruby : [ 2.7, '3.0', '3.1', head ]
22
- faraday : [ '~> 1.0', '~> 2.0' ]
17
+ os :
18
+ - ubuntu
19
+ ruby :
20
+ - 2.7
21
+ - " 3.0"
22
+ - " 3.1"
23
+ - head
24
+ faraday :
25
+ - ~> 1.0
26
+ - ~> 2.0
23
27
env :
24
28
FARADAY_VERSION : ${{ matrix.faraday }}
25
-
26
29
steps :
27
- - uses : actions/checkout@v2
30
+ - uses : actions/checkout@v3
28
31
- name : Cache Ruby dependencies
29
32
uses : actions/cache@v3
30
33
with :
31
34
path : ./.bundle/gems
32
- key : cache-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.faraday }}-${{ github.sha }}
35
+ key : >-
36
+ cache-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.faraday }}-${{
37
+ github.sha }}
33
38
restore-keys : |
34
39
cache-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.faraday }}-
35
40
- name : Set up Ruby
46
51
- name : Test with RSpec with frozen string literals enabled
47
52
env :
48
53
GITHUB_CI : 1
49
- RUBYOPT : --enable-frozen-string-literal
54
+ RUBYOPT : " --enable-frozen-string-literal"
50
55
run : bundle exec rspec -w
51
56
- name : Lint with Rubocop
52
57
env :
You can’t perform that action at this time.
0 commit comments