From b1e468d96eb5c83546325052e356c3a00b51afd2 Mon Sep 17 00:00:00 2001 From: Paul McMahon Date: Tue, 29 Dec 2020 14:48:49 +0900 Subject: [PATCH] Run tests using GitHub workflows (#2425) travis-ci.org now displays "Please be aware travis-ci.org will be shutting down in several weeks, with all accounts migrating to travis-ci.com. Please stay tuned here for more information." As GitHub actions is free for public repositories, whereas it's unclear to what travis-ci.com will be, and the switching cost is low, it seems going with workflows is the prudent thing to do. --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 18 ------------------ 2 files changed, 29 insertions(+), 18 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 00000000..a7e2bbb4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + test: + runs-on: ubuntu-latest + continue-on-error: ${{ matrix.experimental == true }} + name: ruby-${{ matrix.ruby-version }} + strategy: + matrix: + ruby-version: [head, 3.0, 2.7, 2.6, 2.5] + include: + - ruby-version: head + experimental: true + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Runs tests + run: bundle exec rake + env: + test: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0f8100dd..00000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: ruby -dist: xenial -cache: bundler -rvm: - - ruby-head - - 3.0 - - 2.7 - - 2.6 - - 2.5 -os: - - linux -jobs: - fast_finish: true - allow_failures: - - rvm: ruby-head -env: - global: - - TEST=true