From c5ecab6b6034dbf408c1110a5294c6ddf045b8ab Mon Sep 17 00:00:00 2001 From: Rocela Durazo Date: Tue, 19 Oct 2021 17:52:31 -0700 Subject: [PATCH] Use GitHub Actions instead of TravisCI --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .travis.yml | 10 ---------- README.md | 2 +- 3 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3ccdf5d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + ruby: ["2.6", "2.7", "3.0"] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby, bundler and dependencies + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run tests + run: bundle exec rspec + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e4b194e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: ruby -install: bundle install -j 4 --retry 3 -script: - - RAILS_ENV=test bundle exec rspec spec -rvm: - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - 2.7 diff --git a/README.md b/README.md index 3421039..b945a32 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Heartcheck::Newrelic -[![Build Status](https://travis-ci.org/locaweb/heartcheck-newrelic.svg)](https://travis-ci.org/locaweb/heartcheck-newrelic) +[![Build Status](https://github.com/locaweb/heartcheck-newrelic/actions/workflows/ci.yml/badge.svg)](https://github.com/locaweb/heartcheck-newrelic/actions/workflows/ci.yml) A [Heartcheck](https://github.com/locaweb/heartcheck) plugin for the [NewRelic](https://newrelic.com/) monitoring service.