From c618525a755847e5a2c3b8fca1cd6a7149034f9c Mon Sep 17 00:00:00 2001 From: Lukas Eklund Date: Mon, 30 Oct 2023 09:04:24 -0500 Subject: [PATCH] Use github actions instead of travis-ci. (#43) * Create ruby.yml - add GitHub actions * rm .travis.yml --- .github/workflows/ruby.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 10 ---------- 2 files changed, 28 insertions(+), 10 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..13a2a13 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,28 @@ +name: Ruby + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.7', '3.0', '3.1', '3.2'] + + 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 57dfdb4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -sudo: false -language: ruby -rvm: - - 3.1 - - 3.0 - - 2.7 -before_install: gem install bundler -v 2.2.15 -gemfile: - - sidekiq_6.gemfile - - sidekiq_7.gemfile