From 7570869fea96240f7ce2d238b3cb8f15c664655a Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 23 Nov 2023 17:01:18 +0100 Subject: [PATCH 1/2] Drop Travis CI config, build badge [ci skip] --- .travis.yml | 15 --------------- README.md | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 689101e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: ruby -rvm: - - 2.1 - - 2.2 - - 2.3 - - 2.4 - - 2.5 - - 2.6 -gemfile: - - gemfiles/rspec_3.3.gemfile - - gemfiles/rspec_3.4.gemfile - - gemfiles/rspec_3.5.gemfile - - gemfiles/rspec_3.6.gemfile - - gemfiles/rspec_3.7.gemfile -cache: bundler diff --git a/README.md b/README.md index 94924c7..515019b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# RSpec::Retry ![Build Status](https://secure.travis-ci.org/NoRedInk/rspec-retry.svg?branch=master) +# RSpec::Retry RSpec::Retry adds a ``:retry`` option for intermittently failing rspec examples. If an example has the ``:retry`` option, rspec will retry the example the From bbbc8a19445e84a6645c82653c917f897f9e851f Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 23 Nov 2023 17:00:16 +0100 Subject: [PATCH 2/2] Add a GitHub Actions CI --- .github/dependabot.yml | 7 +++++++ .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..438cb6f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every weekday + interval: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..70aafd5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +me: Ruby CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: + - 3.2 + - 3.1 + - "3.0" + gemfile: + - gemfiles/rspec_3.3.gemfile + - gemfiles/rspec_3.4.gemfile + - gemfiles/rspec_3.5.gemfile + - gemfiles/rspec_3.6.gemfile + - gemfiles/rspec_3.7.gemfile + + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }} + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake