diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f180fef --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: + - master + + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + name: Ruby ${{ matrix.ruby }} + strategy: + matrix: + ruby: + - '3.4' + - '3.3' + - '3.2' + - '3.1' + - '3.0' + - '2.7' + - '2.6' + - '2.5' + - '2.4' + - '2.3' + + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Run tests + run: bundle exec rake test diff --git a/.gitignore b/.gitignore index a17630b..3b539e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +/.bundle/ +/Gemfile.lock /TAGS /pkg /doc diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 62b0c7c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -after_script: -- rake travis:after -t -before_script: -- gem install hoe-travis --no-rdoc --no-ri -- rake travis:before -t -language: ruby -notifications: - email: - - drbrain@segment7.net -rvm: -- 1.8.7 -- 1.9.3 -- 2.0.0 -- ruby-head -script: rake travis diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..ac300a2 --- /dev/null +++ b/Gemfile @@ -0,0 +1,14 @@ +source 'https://rubygems.org' + +# Specify your gem's dependencies in awesome_print.gemspec +#gemspec + +if RUBY_VERSION >= '3.0' + gem 'hoe' +else + # Since Minitest 5.16+ does not work on Ruby 2.7 or earlier, use Hoe 3.x. + # https://github.com/seattlerb/hoe/blob/v4.0.1/lib/hoe/test.rb#L68 + gem 'hoe', '~> 3' +end +gem 'hoe-git' +gem 'minitest' diff --git a/Manifest.txt b/Manifest.txt index c86f8fe..09434bd 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -1,5 +1,4 @@ .autotest -.travis.yml History.txt Manifest.txt README.txt diff --git a/Rakefile b/Rakefile index 40a633e..0b31b46 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,6 @@ require 'hoe' Hoe.plugin :git Hoe.plugin :minitest -Hoe.plugin :travis Hoe.spec 'net-http-digest_auth' do developer 'Eric Hodel', 'drbrain@segment7.net'