2121 runs-on : ${{ matrix.os }}
2222 strategy :
2323 matrix :
24- sidekiq_version : [' 5.0', ' 6.0', ' 7.0' ]
25- ruby_version : [' 2.7', ' 3.0', ' 3.1', ' 3.2' , jruby]
24+ sidekiq_version : [" 5.0", " 6.0", " 7.0" ]
25+ ruby_version : [" 2.7", " 3.0", " 3.1", " 3.2" , jruby]
2626 os : [ubuntu-latest]
2727 include :
2828 - { os: ubuntu-latest, ruby_version: 2.4, sidekiq_version: 5.0 }
@@ -33,30 +33,43 @@ jobs:
3333 - { os: ubuntu-latest, ruby_version: jruby, sidekiq_version: 5.0 }
3434 - { os: ubuntu-latest, ruby_version: jruby, sidekiq_version: 6.0 }
3535 - { os: ubuntu-latest, ruby_version: jruby, sidekiq_version: 7.0 }
36- - { os: ubuntu-latest, ruby_version: '3.2', sidekiq_version: 7.0, options: { rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal" } }
37- - { os: ubuntu-latest, ruby_version: '3.2', sidekiq_version: 7.0, options: { codecov: 1 } }
36+ - {
37+ os : ubuntu-latest,
38+ ruby_version : " 3.2" ,
39+ sidekiq_version : 7.0,
40+ options :
41+ {
42+ rubyopt : " --enable-frozen-string-literal --debug=frozen-string-literal" ,
43+ },
44+ }
45+ - {
46+ os : ubuntu-latest,
47+ ruby_version : " 3.2" ,
48+ sidekiq_version : 7.0,
49+ options : { codecov: 1 },
50+ }
3851 steps :
39- - uses : actions/checkout@v1
52+ - uses : actions/checkout@v1
4053
41- - name : Set up Ruby ${{ matrix.ruby_version }}
42- uses : ruby/setup-ruby@v1
43- with :
44- ruby-version : ${{ matrix.ruby_version }}
45- bundler : " 2.3 "
54+ - name : Set up Ruby ${{ matrix.ruby_version }}
55+ uses : ruby/setup-ruby@v1
56+ with :
57+ ruby-version : ${{ matrix.ruby_version }}
58+ bundler-cache : true
4659
47- - name : Start Redis
48- uses : supercharge/redis-github-action@1.1.0
49- with :
50- redis-version : ${{ matrix.sidekiq_version == '7.0' && 6 || 5 }}
60+ - name : Start Redis
61+ uses : supercharge/redis-github-action@1.1.0
62+ with :
63+ redis-version : ${{ matrix.sidekiq_version == '7.0' && 6 || 5 }}
5164
52- - name : Run specs with Sidekiq ${{ matrix.sidekiq_version }}
53- env :
54- SIDEKIQ_VERSION : ${{ matrix.sidekiq_version }}
55- RUBYOPT : ${{ matrix.options.rubyopt }}
56- run : |
57- bundle install --jobs 4 --retry 3
58- make test
65+ - name : Run specs with Sidekiq ${{ matrix.sidekiq_version }}
66+ env :
67+ SIDEKIQ_VERSION : ${{ matrix.sidekiq_version }}
68+ RUBYOPT : ${{ matrix.options.rubyopt }}
69+ run : |
70+ bundle install --jobs 4 --retry 3
71+ make test
5972
60- - name : Upload Coverage
61- if : ${{ matrix.options.codecov }}
62- uses : codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
73+ - name : Upload Coverage
74+ if : ${{ matrix.options.codecov }}
75+ uses : codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
0 commit comments