Skip to content

Commit

Permalink
Allow ruby 2.6 (#1)
Browse files Browse the repository at this point in the history
* add tests for all ruby versions, allow ruby 2.6

* bump version

* rename to tests

* add to changelog

* fix urls in gemspec
  • Loading branch information
houen committed Sep 13, 2021
1 parent f9b3817 commit 6bbbe05
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 14 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/main.yml
@@ -1,16 +1,40 @@
name: Master
name: Tests

on: [push,pull_request]

jobs:
rake_test:
rake_test_ruby_3_0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.1
ruby-version: 3.0.2
bundler-cache: true
- name: Run rake test
run: bundle exec rake test

rake_test_ruby_2_7:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.4
bundler-cache: true
- name: Run rake test
run: bundle exec rake test

rake_test_ruby_2_6:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.8
bundler-cache: true
- name: Run rake test
run: bundle exec rake test
2 changes: 1 addition & 1 deletion .rubocop.yml
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 2.7
TargetRubyVersion: 2.6
NewCops: enable

Style/StringLiterals:
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
@@ -0,0 +1 @@
3.0.2
11 changes: 8 additions & 3 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
## [Unreleased]

## [0.1.0] - 2021-09-09
## [0.2.0] - 2021-09-12
- Add support for Ruby 2.6

## [0.1.3] - 2021-09-09
- Initial release
- Outputs to console
- Outputs to file
- Rerun must be done semi-manually via something like `bundle exec rails test $(cat .minitest_failed_tests.txt)`


5 changes: 3 additions & 2 deletions Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
minitest-rerun-failed (0.1.3)
minitest-rerun-failed (0.2.0)
minitest (~> 5.14.4)
minitest-reporters (~> 1.4.3)

Expand Down Expand Up @@ -44,6 +44,7 @@ GEM

PLATFORMS
x86_64-darwin-19
x86_64-darwin-20
x86_64-linux

DEPENDENCIES
Expand All @@ -56,4 +57,4 @@ DEPENDENCIES
rubocop-rake

BUNDLED WITH
2.2.18
2.2.22
2 changes: 1 addition & 1 deletion lib/minitest_rerun_failed/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module MinitestRerunFailed
VERSION = "0.1.3"
VERSION = "0.2.0"
end
8 changes: 4 additions & 4 deletions minitest_rerun_failed.gemspec
Expand Up @@ -9,13 +9,13 @@ Gem::Specification.new do |spec|
spec.email = ["s@houen.net"]

spec.summary = "Easily rerun failed tests with Minitest"
spec.homepage = "https://www.github.com/houen/minitest_rerun_failed"
spec.homepage = "https://www.github.com/houen/minitest-rerun-failed"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.7.0"
spec.required_ruby_version = ">= 2.6.0"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://www.github.com/houen/minitest_rerun_failed"
spec.metadata["changelog_uri"] = "https://www.github.com/houen/minitest_rerun_failed/CHANGELOG.md"
spec.metadata["source_code_uri"] = "https://www.github.com/houen/minitest-rerun-failed"
spec.metadata["changelog_uri"] = "https://www.github.com/houen/minitest-rerun-failed/CHANGELOG.md"

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Expand Down

0 comments on commit 6bbbe05

Please sign in to comment.