Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI - add ruby 3.3 #18

Merged
merged 5 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["main"]

env:
RUBY_MAIN_VERSION: '3.2'
RUBY_MAIN_VERSION: "3.3"

jobs:
rubocop:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d #v1.133.1
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 #v1.165.1
with:
bundler-cache: true
ruby-version: ${{ env.RUBY_MAIN_VERSION }}.0
Expand All @@ -31,12 +31,12 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby_version: ['2.7', '3.0', '3.1', '3.2']
ruby_version: ["3.0", "3.1", "3.2", "3.3"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d #v1.133.1
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 #v1.165.1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby_version }}
Expand All @@ -47,15 +47,15 @@ jobs:
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Bundle Install
run: bundle install
- name: Test
run: bundle exec rspec
- name: Publish Codeclimate Code Coverage
if: ${{ matrix.ruby_version == env.RUBY_MAIN_VERSION }}
run: |
./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}}
./cc-test-reporter format-coverage -t lcov
./cc-test-reporter upload-coverage -r ${{secrets.CC_TEST_REPORTER_ID}}
- name: Coveralls Parallel
if: ${{ matrix.ruby_version == env.RUBY_MAIN_VERSION }}
uses: coverallsapp/github-action@master
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ pkg
.ruby-version
.ruby-gemset
Gemfile.lock

cc-test-reporter
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ Version" />](https://badge.fury.io/rb/rds-rotate-db-snapshots) [![CI](https://gi
Provides a simple way to rotate db snapshots in Amazon Relational Database
Service (RDS).

## Version 1.0.0 changes

Removed support for ruby < 3.0.0

## Tested on Rubies

- 2.7
- 3.0
- 3.1
- 3.2
- 3.3

## Usage

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.2
1.0.0
27 changes: 16 additions & 11 deletions rds-rotate-db-snapshots.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
# stub: rds-rotate-db-snapshots 0.5.2 ruby lib
# stub: rds-rotate-db-snapshots 1.0.0 ruby lib

Gem::Specification.new do |s|
s.name = "rds-rotate-db-snapshots".freeze
s.version = "0.5.2"
s.version = "1.0.0".freeze

s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib".freeze]
s.authors = ["Siarhei Kavaliou".freeze]
s.date = "2023-01-11"
s.date = "2024-01-02"
s.description = "Provides a simple way to rotate RDS DB snapshots with configurable retention periods.".freeze
s.email = "[email protected]".freeze
s.executables = ["rds-rotate-db-snapshots".freeze]
Expand All @@ -21,16 +21,21 @@ Gem::Specification.new do |s|
]
s.files = [
".document",
".github/ISSUE_TEMPLATE/bug_report.md",
".github/ISSUE_TEMPLATE/feature_request.md",
".github/dependabot.yml",
".github/workflows/ci.yml",
".github/workflows/codeql.yml",
".rspec",
".rubocop.yml",
".rubocop_todo.yml",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"Gemfile",
"LICENSE.txt",
"README.md",
"Rakefile",
"SECURITY.md",
"VERSION",
"bin/rds-rotate-db-snapshots",
"lib/rds_rotate_db_snapshots.rb",
Expand All @@ -49,17 +54,17 @@ Gem::Specification.new do |s|
]
s.homepage = "http://github.com/serg-kovalev/rds-rotate-db-snapshots".freeze
s.licenses = ["MIT".freeze]
s.rubygems_version = "3.4.1".freeze
s.rubygems_version = "3.5.3".freeze
s.summary = "Amazon RDS DB snapshot rotator".freeze

s.specification_version = 4

s.add_runtime_dependency(%q<aws-sdk-rds>.freeze, ["~> 1"])
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
s.add_development_dependency(%q<pry>.freeze, [">= 0"])
s.add_development_dependency(%q<pry-byebug>.freeze, [">= 0"])
s.add_development_dependency(%q<rubocop>.freeze, [">= 0"])
s.add_development_dependency(%q<rubocop-rspec>.freeze, [">= 0"])
s.add_runtime_dependency(%q<aws-sdk-rds>.freeze, ["~> 1".freeze])
s.add_development_dependency(%q<rake>.freeze, [">= 0".freeze])
s.add_development_dependency(%q<juwelier>.freeze, [">= 0".freeze])
s.add_development_dependency(%q<pry>.freeze, [">= 0".freeze])
s.add_development_dependency(%q<pry-byebug>.freeze, [">= 0".freeze])
s.add_development_dependency(%q<rubocop>.freeze, [">= 0".freeze])
s.add_development_dependency(%q<rubocop-rspec>.freeze, [">= 0".freeze])
end