diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4b7dbca --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + ruby: ["2.3", "2.4", "2.5", "2.6", "2.7"] + runs-on: ${{ matrix.os }} + env: + RAILS_ENV: test + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + + - name: Install dependencies + run: bundle install -j 4 --retry 3 + + - name: Run tests + run: bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 15c225a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: ruby -install: bundle install -j 4 --retry 3 -script: - - RAILS_ENV=test bundle exec rspec spec -matrix: - include: - - rvm: 2.3 - - rvm: 2.4 - - rvm: 2.5 - - rvm: 2.6 - - rvm: 2.7 diff --git a/README.md b/README.md index b798f21..4352202 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Heartcheck::Cas -[![Build Status](https://travis-ci.org/locaweb/heartcheck-cas.svg?branch=master)](https://travis-ci.org/locaweb/heartcheck-cas) +[![Build Status](https://github.com/locaweb/heartcheck-cas/actions/workflows/ci.yml/badge.svg)](https://github.com/locaweb/heartcheck-cas/actions/workflows/ci.yml) [![Code Climate](https://codeclimate.com/github/locaweb/heartcheck-cas/badges/gpa.svg)](https://codeclimate.com/github/locaweb/heartcheck-cas) A plugin to check CAS accessibility connection with [heartcheck](https://github.com/locaweb/heartcheck).