diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 00000000..d6a460ae --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6.3 + - name: Install dependencies + run: bundle install --without production + - name: Run tests + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c82a1489..00000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -dist: bionic -addons: - chrome: stable - -notifications: - email: false - -sudo: false -language: ruby -cache: bundler -bundler_args: --without production - -rvm: - - 2.6.3 - -env: - global: - - CC_TEST_REPORTER_ID=afca182781705a1379fa3cdc7d4fa2319c4fc7bb100e27969325255bdc54d0bc - -before_script: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build - -after_script: - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT - -before_install: - - yes | gem update --system - - gem install bundler - - google-chrome-stable --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 http://localhost & diff --git a/README.md b/README.md index 079455c1..547acc94 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # MyLibrary -[![Build Status](https://travis-ci.org/sul-dlss/mylibrary.svg?branch=master)](https://travis-ci.org/sul-dlss/mylibrary) +[![Build Status](https://github.com/sul-dlss/mylibrary/workflows/CI/badge.svg?branch=master)](https://github.com/sul-dlss/mylibrary/actions?query=workflow%3ACI+branch%3Amaster) [![Code Climate](https://codeclimate.com/github/sul-dlss/mylibrary/badges/gpa.svg)](https://codeclimate.com/github/sul-dlss/mylibrary) [![Test Coverage](https://api.codeclimate.com/v1/badges/a8f1c5dab3a53ffba586/test_coverage)](https://codeclimate.com/github/sul-dlss/mylibrary/test_coverage)