Skip to content

Commit d97fa2b

Browse files
authored
DEV: Drop ruby 2.6, add 3.2 (#251)
1 parent 43251fa commit d97fa2b

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,26 @@ on:
77
- main
88

99
jobs:
10-
build:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: '3.1'
19+
bundler-cache: true
20+
21+
- name: Rubocop
22+
run: bundle exec rubocop
23+
24+
test:
1125
runs-on: ubuntu-latest
1226

1327
strategy:
1428
matrix:
15-
ruby:
16-
- '2.6'
17-
- '2.7'
18-
- '3.0'
19-
- '3.1'
29+
ruby: ['2.7', '3.0', '3.1', '3.2']
2030

2131
steps:
2232
- uses: actions/checkout@v3
@@ -27,15 +37,12 @@ jobs:
2737
ruby-version: ${{ matrix.ruby }}
2838
bundler-cache: true
2939

30-
- name: Lint
31-
run: bundle exec rubocop
32-
3340
- name: Tests
3441
run: bundle exec rake test
3542

3643
publish:
3744
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
38-
needs: build
45+
needs: [lint, test]
3946
runs-on: ubuntu-latest
4047

4148
steps:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Changed
9+
- The package now requires ruby 2.7+
810

911
## [1.1.0] - 2022-07-05
1012
### Changed

discourse_api.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ Gem::Specification.new do |spec|
3232
spec.add_development_dependency 'webmock', '~> 3.0'
3333
spec.add_development_dependency 'rubocop-discourse', '~> 2.5.0'
3434

35-
spec.required_ruby_version = '>= 2.6.0'
35+
spec.required_ruby_version = '>= 2.7.0'
3636
end

0 commit comments

Comments
 (0)