From 89b53488eed8aa98c56ffebdac1bba8acab307a3 Mon Sep 17 00:00:00 2001 From: Benjamin Woosley Date: Tue, 21 May 2024 15:57:22 -0500 Subject: [PATCH] Drop travis ci in favor of github actions Drop EOL ruby versions from the test matrix Action script based off: https://github.com/actions/starter-workflows/blob/main/ci/ruby.yml --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 14 -------------- README.rdoc | 2 -- roxml.gemspec | 2 -- 4 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..213863a2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + +permissions: + contents: read + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4', 'head'] + + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index de2a6e9a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -sudo: false -language: ruby -before_install: - - bundle update --bundler -rvm: - - 2.5.3 - - 2.6.1 - - 2.7.1 - - 3.0.0 - - ruby-head - -matrix: - allow_failures: - - rvm: ruby-head diff --git a/README.rdoc b/README.rdoc index 80fa5943..0dc88fce 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,7 +1,5 @@ ROXML Ruby Object to XML mapping library. -{https://travis-ci.org/Empact/roxml.svg?branch=master}[https://travis-ci.org/Empact/roxml] - For more information visit: http://rdoc.info/projects/Empact/roxml diff --git a/roxml.gemspec b/roxml.gemspec index 8b38e676..1168e428 100644 --- a/roxml.gemspec +++ b/roxml.gemspec @@ -16,9 +16,7 @@ Gem::Specification.new do |s| "README.rdoc" ] s.files = [ - ".gitmodules", ".rspec", - ".travis.yml", "Gemfile", "Gemfile.lock", "History.txt",