diff --git a/.coveralls.yml b/.coveralls.yml index 9160059..1157ff2 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1 +1 @@ -service_name: travis-ci +service_name: github-actions diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..83b6060 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby-version: + - '2.7.8' + - '3.0.7' + - '3.1.6' + - '3.2.7' + - '3.3.7' + - '3.4.2' + - 'head' + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rspec + - name: Coveralls + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e18623a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -sudo: false -language: ruby -cache: bundler -rvm: - - jruby-9.1 - - jruby - - "2.0.0" - - "2.1" - - "2.2" - - "2.3" - - "2.4" - - "2.5" - - "2.6" - - "2.7" - - ruby-head -before_install: - - type bundle || gem install bundler diff --git a/Gemfile b/Gemfile index 46afcc2..102c555 100644 --- a/Gemfile +++ b/Gemfile @@ -12,5 +12,3 @@ gem 'rubocop', require: false gem 'rubocop-performance', '~> 1.24', require: false gem 'rubocop-rake', '~> 0.7.1', require: false gem 'rubocop-rspec', '~> 3.5', require: false -gem 'travis' -gem 'travis-lint' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 17bf171..579643e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,8 +3,7 @@ unless defined? JRUBY_VERSION require 'simplecov' require 'coveralls' - Coveralls.wear! - + SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter