-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (37 loc) · 1014 Bytes
/
ruby.yaml
File metadata and controls
44 lines (37 loc) · 1014 Bytes
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: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['3.1', '3.4', 'jruby-9.4', 'jruby-10']
services:
rabbitmq:
image: rabbitmq
ports:
- 5672:5672
# GHA natively waits for the service to be healthy, replacing `dockerize`
options: >-
--health-cmd "rabbitmq-diagnostics -q ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
# This automatically runs `bundle install` and caches the gems for faster runs!
bundler-cache: true
- name: Which bundler?
run: bundle -v
- name: RSpec
run: bundle exec rspec