diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..19dd1ee --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Tests + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + test: + name: Run tests on Ruby ${{ matrix.RUBY_VERSION }} + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + RUBY_VERSION: [2.2, 2.5, 2.6, 2.7] + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Install Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.RUBY_VERSION }} + bundler: 1.17.3 + bundler-cache: true + + - name: Rubocop + run: bundle exec rake rubocop + + - name: Rspec + run: bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e57cb97..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -sudo: false -rvm: - - "2.2" - - "2.5" diff --git a/README.md b/README.md index aeb3bfc..9cbd27c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Aptible::Tasks [![Gem Version](https://badge.fury.io/rb/aptible-tasks.png)](https://rubygems.org/gems/aptible-tasks) -[![Build Status](https://travis-ci.org/aptible/aptible-tasks.png?branch=master)](https://travis-ci.org/aptible/aptible-tasks) [![Dependency Status](https://gemnasium.com/aptible/aptible-tasks.png)](https://gemnasium.com/aptible/aptible-tasks) Shared Rake tasks for Aptible projects.