-
Notifications
You must be signed in to change notification settings - Fork 20
56 lines (47 loc) · 1.21 KB
/
build_test_linux.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
---
name: Build & Tests
on:
push:
branches: [ "v2" ]
pull_request:
branches: [ "v2" ]
jobs:
build:
name: Build and unit-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: oldstable
- name: Build
run: make build
- name: Test
run: make tests-ci
e2e_test:
name: E2E Test
runs-on: ubuntu-latest
services:
rabbitmq:
image: "rabbitmq:3-management"
ports:
- 5552
- 5672
- 15672:15672
options: >-
--health-cmd "rabbitmq-diagnostics check_running"
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-start-period 10s
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: oldstable
- name: E2E Tests
env:
RABBITMQ_CONTAINER_NAME: ${{ job.services.rabbitmq.id }}
run: make e2e_tests RMQ_E2E_SKIP_CONTAINER_START="please" RABBITMQ_URI="rabbitmq-stream://guest:guest@localhost:${{ job.services.rabbitmq.ports[5552] }}/%2F" CI="actions"