Skip to content

Commit 505a616

Browse files
committed
Run tests on newer versions of Ruby and drop 2.5 and 2.6
1 parent c34f985 commit 505a616

1 file changed

Lines changed: 19 additions & 20 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,32 @@ name: Ruby
99

1010
on:
1111
push:
12-
branches: [ master ]
12+
branches: [master]
1313
pull_request:
14-
branches: [ master ]
14+
branches: [master]
1515

1616
jobs:
1717
test:
18-
1918
runs-on: ubuntu-latest
2019
strategy:
2120
matrix:
22-
ruby-version: ['2.5', '2.6', '2.7', '3.0']
21+
ruby-version: ["2.7", "3.0", "3.1"]
2322

2423
steps:
25-
- uses: actions/checkout@v2
26-
- name: Set up Ruby
27-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
29-
# uses: ruby/setup-ruby@v1
30-
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
31-
with:
32-
ruby-version: ${{ matrix.ruby-version }}
33-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34-
- name: Run tests
35-
run: bundle exec rake
24+
- uses: actions/checkout@v2
25+
- name: Set up Ruby
26+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
27+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
28+
# uses: ruby/setup-ruby@v1
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby-version }}
32+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
33+
- name: Run tests
34+
run: bundle exec rake
3635

37-
- name: Coveralls
38-
uses: coverallsapp/github-action@master
39-
with:
40-
github-token: ${{ secrets.GITHUB_TOKEN }}
41-
path-to-lcov: "./coverage/lcov.info"
36+
- name: Coveralls
37+
uses: coverallsapp/github-action@master
38+
with:
39+
github-token: ${{ secrets.GITHUB_TOKEN }}
40+
path-to-lcov: "./coverage/lcov.info"

0 commit comments

Comments
 (0)