diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..1e3c0438 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI +on: [push, pull_request] +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - { ruby: 2.5 } + - { ruby: 2.6 } + - { ruby: 2.7 } + - { ruby: 3.0, allow-failure: true } + - { ruby: head, allow-failure: true } + gemfile: [ + "Gemfile", + "gemfiles/Gemfile.rails-5.2.x", + "gemfiles/Gemfile.rails-5.2.x.sprockets-4.x", + "gemfiles/Gemfile.rails-6.0.x", + "gemfiles/Gemfile.rails-6.0.x.sprockets-4.x" + ] + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run tests + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3c27d8f2..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: ruby -cache: bundler - -before_install: gem install bundler -v '<2' - -rvm: - - 2.5.8 - - 2.6.6 - - 2.7.1 - -gemfile: - - Gemfile - - gemfiles/Gemfile.rails-5.2.x - - gemfiles/Gemfile.rails-5.2.x.sprockets-4.x - - gemfiles/Gemfile.rails-6.0.x - - gemfiles/Gemfile.rails-6.0.x.sprockets-4.x - - -notifications: - email: false - campfire: - on_success: change - on_failure: always - rooms: - - secure: "RkdRnCTQkmW7izb9+p9XB8pDrj7XiwHaOXQtEw29U7gXQDPqz77QzoL4cKlvMwalW77079Abp4gQpYeLFIZVm2VcVwFW3/6s0kgf3LGssbrF5fPSQnXk6GQGJBRGUyLt0TCi63Y/5DskREtEINbRfKLiDGm8ar/ExFoJzcZIsig=" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 246f2f0b..e2b64571 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,8 +1,6 @@ Contributing to Sprockets Rails ===================== -[![Build Status](https://travis-ci.org/rails/sprockets-rails.svg?branch=master)](https://travis-ci.org/rails/sprockets-rails) - Sprockets Rails is work of [many contributors](https://github.com/rails/sprockets-rails/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/rails/sprockets-rails/pulls), [propose features and discuss issues](https://github.com/rails/sprockets-rails/issues). #### Fork the Project diff --git a/README.md b/README.md index 45d2d35f..69720928 100644 --- a/README.md +++ b/README.md @@ -196,5 +196,4 @@ Sprockets Rails is released under the [MIT License](MIT-LICENSE). ## Code Status -* [![Travis CI](https://travis-ci.org/rails/sprockets-rails.svg?branch=master)](http://travis-ci.org/rails/sprockets-rails) * [![Gem Version](https://badge.fury.io/rb/sprockets-rails.svg)](http://badge.fury.io/rb/sprockets-rails)