From dbeb6a9916f4b5f5cc89de235ff8cccfc9748b34 Mon Sep 17 00:00:00 2001 From: "john.mortlock" Date: Sat, 8 Jan 2022 09:01:09 +1030 Subject: [PATCH 1/4] Replace coveralls with github action --- .github/workflows/ruby.yml | 5 +++++ s3-toolkit.gemspec | 2 -- spec/support/coverage_loader.rb | 2 -- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index c901dd1..b6f07a2 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -15,3 +15,8 @@ jobs: bundler-cache: true - run: bundle exec standardrb - run: bundle exec rspec spec + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: coverage/lcov.info diff --git a/s3-toolkit.gemspec b/s3-toolkit.gemspec index e033a14..1174202 100644 --- a/s3-toolkit.gemspec +++ b/s3-toolkit.gemspec @@ -26,10 +26,8 @@ Gem::Specification.new do |spec| spec.add_dependency "dry-cli" spec.add_development_dependency "coverage-kit" - spec.add_development_dependency "coveralls_reborn" spec.add_development_dependency "nokogiri" spec.add_development_dependency "pry-byebug" spec.add_development_dependency "rspec" spec.add_development_dependency "standard" - spec.add_development_dependency "simplecov-rcov" end diff --git a/spec/support/coverage_loader.rb b/spec/support/coverage_loader.rb index 9b75ee0..94c785a 100644 --- a/spec/support/coverage_loader.rb +++ b/spec/support/coverage_loader.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "simplecov-rcov" -require "coveralls" require "coverage/kit" Coverage::Kit.setup(minimum_coverage: 100.0) From 5a560c08d591171a7cf9c54a00b2f09bb73dc150 Mon Sep 17 00:00:00 2001 From: "john.mortlock" Date: Sat, 8 Jan 2022 09:02:28 +1030 Subject: [PATCH 2/4] Add ruby 3.1.0 to build matrix --- .github/workflows/ruby.yml | 2 +- .ruby-version | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index b6f07a2..4772c30 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0"] + ruby: ["2.6", "2.7", "3.0", "3.1.0"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.ruby-version b/.ruby-version index b502146..fd2a018 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.0.2 +3.1.0 From 2c03016a900498c85ff9f83eec5830b5f271dc0c Mon Sep 17 00:00:00 2001 From: "john.mortlock" Date: Sat, 8 Jan 2022 09:02:52 +1030 Subject: [PATCH 3/4] Ignore bundler config folder --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index c22299b..49837fe 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ vendor *.gem Gemfile.lock coverage +.bundle From ce1bb4b447bb1a0f751915f88848fc344880d481 Mon Sep 17 00:00:00 2001 From: "john.mortlock" Date: Sat, 8 Jan 2022 09:03:31 +1030 Subject: [PATCH 4/4] Changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f8d7fa..dee1d69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## Unreleased + +- [PLAT-183] Use github action in place of coveralls gem, build against ruby 3.1 + ## 0.2.0 - [PLAT-147] Remove any double slash from the url