1
0
Fork 0
mirror of https://github.com/deanpcmad/sidekiq-limit_fetch.git synced 2022-11-09 13:54:36 -05:00
deanpcmad--sidekiq-limit_fetch/.github/workflows/ci.yml

43 lines
978 B
YAML
Raw Permalink Normal View History

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1"]
appraisal: ['6.0', '6.1', '6.2', '6.3', '6.4', '6.5', 'master']
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: false
2022-03-26 09:50:47 +00:00
- name: Bundle for Appraisal
run: bundle
- name: Install Appraisal dependencies
2022-03-26 09:48:02 +00:00
run: bundle exec appraisal sidekiq-${{ matrix.appraisal }} bundle
- name: Run tests
2022-03-26 09:48:02 +00:00
run: bundle exec appraisal sidekiq-${{ matrix.appraisal }} bundle exec rake