-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 958 Bytes
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
services:
rabbitmq:
image: rabbitmq:3.10
# needed because the rabbitmq container does not provide a healthcheck
options: >-
--health-cmd "rabbitmq-diagnostics ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5672:5672
strategy:
fail-fast: false
matrix:
include:
- { ruby: 2.7.6 }
- { ruby: 3.0.4 }
- { ruby: 3.1.2 }
- { ruby: jruby-9.3.7.0, allow-failure: true }
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
continue-on-error: ${{ matrix.allow-failure || false }}