From b1a6d1c169bfef4fdb3a086d1c45159842896950 Mon Sep 17 00:00:00 2001 From: Edgars Beigarts Date: Wed, 21 Feb 2024 15:11:27 +0200 Subject: [PATCH] Replace travis with github actions --- .github/workflows/ruby.yml | 23 +++++++++++++++++++++++ .travis.yml | 9 --------- 2 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/ruby.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..7b4c6f2 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,23 @@ +name: Ruby + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ["3.1", "3.2", "3.3"] + rails-version: ["6.1.0", "7.0.0", "7.1.0"] + + steps: + - uses: actions/checkout@v2 + - 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 + env: + RAILS_VERSION: ${{ matrix.rails-version }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 45ad62a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: ruby -rvm: - - 2.2 - - 2.3 - - 2.4 - - 2.5 -env: - - "RAILS_VERSION=5.1.0" - - "RAILS_VERSION=5.2.0.beta2"