From d1ca020e456b94b186e5710f99a887a089079d6a Mon Sep 17 00:00:00 2001 From: Phillip Baker Date: Fri, 31 Mar 2023 09:12:05 -0400 Subject: [PATCH] [ci] Add github actions --- .github/workflows/test.yml | 21 +++++++++++++++++++++ .travis.yml | 14 -------------- 2 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0c46716 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.7', '3.0', '3.1', '3.2'] + gemfile: + - Gemfile + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }} + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 74528b4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -sudo: false -cache: bundler -language: ruby -before_install: - - gem install bundler -before_script: - - 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc' # skip installing docs for gems -script: 'bundle exec rake test' -rvm: - - 1.9.3 - - 2.0.0 - - 2.1.0 - - 2.2.0 - - 2.3.0