-
Notifications
You must be signed in to change notification settings - Fork 152
46 lines (41 loc) · 1.18 KB
/
ruby.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: >-
${{ matrix.os }} ${{ matrix.ruby-version }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, ubuntu-20.04 ]
ruby-version: [ "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3" ]
gemfile:
- resque_1.22_redis_2.0
- resque_1.23_redis_3.0
- resque_1.24_redis_3.0
- resque_1.25_redis_3.0
- resque_1.27_redis_3.3
- resque_2.0_redis_4.0
- resque_2.1_redis_4.4
- resque_2.2_redis_4.6
- resque_2.3_redis_4.7
- resque_2.4_redis_4.8
- resque_2.5_redis_5.0
- resque_2.6_redis_5.2
services:
redis:
image: redis
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: sudo apt-get install redis-server
- name: Run specs
run: bundle exec rake