From a1f150fbcb489288068b4b20d1025ed27e481173 Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Thu, 13 Jan 2022 23:54:05 -0800 Subject: [PATCH] Switch to GitHub Actions --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 14 -------------- 2 files changed, 37 insertions(+), 14 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..d64dce2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: + - '3.1' + - '3.0' + - '2.7' + - '2.6' + - '2.5' + + services: + redis: + image: redis + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 6379:6379 + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # 'bundle install' and cache + - name: Run tests + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e5c4d9e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -dist: bionic -language: ruby -services: - - redis -rvm: - - 2.5 - - 2.6 - - 2.7 - - 3.0 -before_script: - - bin/setup -cache: - bundler: true -