From c6b147b9b38cbad0fc2c0ced8446a53ea4299509 Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Mon, 27 Mar 2023 11:15:41 -0400 Subject: [PATCH] Migrate CI to GitHub Actions --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 8 -------- 2 files changed, 30 insertions(+), 8 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..b62e8dc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + ruby-version: + - head + - '3.2' + - '3.1' + - '3.0' + - '2.7' + - '2.6' + - '2.5' + - '2.4' + - '2.3' + steps: + - uses: actions/checkout@v3 + - 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 b766479..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -rvm: - - "2.3" - - "2.4" - - "2.5" - - "2.6" - - "ruby-head" -notifications: - email: false