Skip to content

Commit 66cc304

Browse files
Steal Bunny's CI workflow definition
1 parent 4bf7ad1 commit 66cc304

File tree

2 files changed

+46
-63
lines changed

2 files changed

+46
-63
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
branches:
9+
- "main"
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
ruby-version:
18+
- "3.4.4"
19+
- "3.3.9"
20+
- "3.2.7"
21+
22+
env:
23+
CI: true
24+
RUNS: 5
25+
26+
services:
27+
rabbitmq:
28+
image: rabbitmq:4-management
29+
ports:
30+
- 15672:15672
31+
- 5672:5672
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Set up Ruby ${{ matrix.ruby-version }}
36+
uses: ruby/setup-ruby@v1
37+
with:
38+
ruby-version: ${{ matrix.ruby-version }}
39+
- name: Install dependencies
40+
run: bundle install
41+
42+
- name: Configure RabbitMQ
43+
run: RUBY_RABBITMQ_HTTP_API_CLIENT_RABBITMQCTL=DOCKER:${{job.services.rabbitmq.id}} RUBY_RABBITMQ_HTTP_API_CLIENT_RABBITMQCTL=DOCKER:${{job.services.rabbitmq.id}} bin/ci/before_build.sh
44+
45+
- name: Run tests
46+
run: bundle exec rspec -c -fd

.github/workflows/test.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)