-
Notifications
You must be signed in to change notification settings - Fork 150
61 lines (55 loc) · 1.37 KB
/
ruby.yml
File metadata and controls
61 lines (55 loc) · 1.37 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches: [ main ]
jobs:
build:
name: >-
ruby ${{ matrix.ruby }}, resque ${{ matrix.resque }}, redis ${{ matrix.redis }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
ruby:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- "3.4"
- "4.0"
resque:
- "2.2"
- "2.3"
- "2.4"
- "2.5"
- "2.6"
- "2.7"
- "3.0"
include:
- { 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" }
- { resque: "2.7", redis: "5.4" }
- { resque: "3.0", redis: "5.4" }
services:
redis:
image: redis
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/resque_${{ matrix.resque }}_redis_${{ matrix.redis }}.gemfile
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: sudo apt-get install redis-server
- name: Run specs
run: bundle exec rake