From 0d571a20166833089866ba27ed1e7ba78ebfcfa3 Mon Sep 17 00:00:00 2001 From: Alex Kubacki Date: Wed, 26 Jun 2024 09:33:40 -0600 Subject: [PATCH] Travis -> GHA (#176) --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 9 --------- 2 files changed, 36 insertions(+), 9 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..b40c8ac --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: Tests + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + test: + name: Run tests on Ruby ${{ matrix.RUBY_VERSION }} + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + RUBY_VERSION: [2.1, 2.2, 2.3, 2.4, 2.5, 2.6] + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Install Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.RUBY_VERSION }} + bundler: 1.17.3 + + - name: Bundle install + run: bundle install + + - name: Rubocop + run: bundle exec rake rubocop + + - name: Rspec + run: bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f5ae4a5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -sudo: false - -rvm: - - "2.1.10" - - "2.2.10" - - "2.3" - - "2.4" - - "2.5" - - "2.6"