-
Notifications
You must be signed in to change notification settings - Fork 0
144 lines (133 loc) · 3.92 KB
/
test.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: Test
on:
- push
- pull_request
jobs:
test:
name: Ruby ${{ matrix.ruby }} / ${{ matrix.suite }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
ruby:
- "3.2"
- "3.1"
- "3.0"
- "2.7"
suite:
- core
- faraday-0.9
- faraday-1.0
- msgr
- rack
- rails-5.2
- rails-6.0
- rails-6.1
- rails-7.0
- rails-7.1
- redis-4.0
- redis-5.0
- redis-client
- restify
- sidekiq-5
- sidekiq-6
- sidekiq-7
include:
- suite: core
spec: --tag ~probe
gemfile: gemfiles/core.gemfile
- suite: faraday-0.9
spec: --tag probe:faraday
gemfile: gemfiles/faraday_09.gemfile
- suite: faraday-1.0
spec: --tag probe:faraday
gemfile: gemfiles/faraday_10.gemfile
- suite: msgr
spec: --tag probe:msgr
gemfile: gemfiles/core.gemfile
- suite: rack
spec: --tag probe:rack
gemfile: gemfiles/core.gemfile
- suite: rails-5.2
spec: --tag probe:rails --tag ~probe
gemfile: gemfiles/rails_52.gemfile
- suite: rails-6.0
spec: --tag probe:rails --tag ~probe
gemfile: gemfiles/rails_60.gemfile
- suite: rails-6.1
spec: --tag probe:rails --tag ~probe
gemfile: gemfiles/rails_61.gemfile
- suite: rails-7.0
spec: --tag probe:rails --tag ~probe
gemfile: gemfiles/rails_70.gemfile
- suite: rails-7.1
spec: --tag probe:rails --tag ~probe
gemfile: gemfiles/rails_71.gemfile
- suite: redis-4.0
spec: --tag probe:redis
gemfile: gemfiles/redis_40.gemfile
- suite: redis-5.0
spec: --tag probe:redis
gemfile: gemfiles/redis_50.gemfile
- suite: redis-client
spec: --tag probe:redis_client
gemfile: gemfiles/core.gemfile
- suite: restify
spec: --tag probe:restify
gemfile: gemfiles/core.gemfile
- suite: sidekiq-5
spec: --tag probe:sidekiq
gemfile: gemfiles/sidekiq_50.gemfile
- suite: sidekiq-6
spec: --tag probe:sidekiq
gemfile: gemfiles/sidekiq_60.gemfile
- suite: sidekiq-7
spec: --tag probe:sidekiq
gemfile: gemfiles/sidekiq_70.gemfile
exclude:
- suite: rails-5.2
ruby: '3.2'
- suite: rails-5.2
ruby: '3.1'
- suite: rails-5.2
ruby: '3.0'
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
BUNDLE_WITHOUT: development
services:
rabbitmq:
image: rabbitmq:latest
ports: [5672/tcp]
options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@v1
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: |
sudo apt install -y redis-server
- name: Run rspec
env:
AMQP_SERVER: amqp://localhost:${{ job.services.rabbitmq.ports[5672] }}
run: bundle exec rspec --color ${{ matrix.spec }}
rubocop:
name: rubocop
runs-on: ubuntu-22.04
env:
BUNDLE_WITHOUT: development test
steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@v1
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
with:
ruby-version: 3.1
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop --parallel --color