Skip to content

Commit 985a6c3

Browse files
committed
Put the ci.yml rubygems condition into one expression
1 parent cb1857e commit 985a6c3

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,10 @@ jobs:
4444
- uses: actions/checkout@v3
4545
- name: Set up Ruby ${{ matrix.ruby }}
4646
uses: ruby/setup-ruby@v1
47-
if: matrix.ruby == '2.5'
4847
with:
4948
ruby-version: ${{ matrix.ruby }}
5049
bundler-cache: true # 'bundle install' and cache
51-
- name: Set up Ruby ${{ matrix.ruby }}
52-
uses: ruby/setup-ruby@v1
53-
if: matrix.ruby != '2.5'
54-
with:
55-
ruby-version: ${{ matrix.ruby }}
56-
bundler-cache: true # 'bundle install' and cache
57-
rubygems: latest
50+
rubygems: ${{ matrix.ruby == '2.5' && 'default' || 'latest' }}
5851
- name: Copy config file
5952
run: cp spec/support/sample.config.yml spec/support/config.yml
6053
- name: Run tests

0 commit comments

Comments
 (0)