2022-02-09 08:05:44 -08:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-06-09 18:06:29 +00:00
|
|
|
ruby: ["2.7", "3.0", "3.1"]
|
|
|
|
appraisal: ['6.0', '6.1', '6.2', '6.3', '6.4', '6.5', 'master']
|
2022-02-09 08:05:44 -08:00
|
|
|
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 }}
|
2022-03-26 09:46:16 +00:00
|
|
|
bundler-cache: false
|
2022-03-26 09:50:47 +00:00
|
|
|
- name: Bundle for Appraisal
|
|
|
|
run: bundle
|
2022-03-26 09:46:16 +00:00
|
|
|
- name: Install Appraisal dependencies
|
2022-03-26 09:48:02 +00:00
|
|
|
run: bundle exec appraisal sidekiq-${{ matrix.appraisal }} bundle
|
2022-02-09 08:05:44 -08:00
|
|
|
- name: Run tests
|
2022-03-26 09:48:02 +00:00
|
|
|
run: bundle exec appraisal sidekiq-${{ matrix.appraisal }} bundle exec rake
|