-
Notifications
You must be signed in to change notification settings - Fork 1
94 lines (73 loc) · 2.33 KB
/
docker-compose.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
name: integration-test
on:
push:
branches:
- main
- testing
tags:
- v*
pull_request:
workflow_dispatch:
permissions:
checks: write
pull-requests: write
jobs:
src-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: service up
run: |
docker compose --file docker-compose.yml up -d grafana
- name: verbose services
# ensure all services is up
run: |
sleep 60
docker compose --file docker-compose.yml ps -a
- name: ns logs
run: |
docker compose --file docker-compose.yml logs openmldb-ns1
docker compose --file docker-compose.yml logs openmldb-ns2
docker compose --file docker-compose.yml logs openmldb-zk
- name: ns internal log
run: |
docker compose --file docker-compose.yml exec openmldb-ns1 cp /opt/openmldb/logs log-ns1/
docker compose --file docker-compose.yml logs openmldb-ns2 cp /opt/openmldb/logs log-ns2/
- uses: actions/upload-artifact@v3
with:
name: ns-logs
path: |
log-ns1/
log-ns2/
- name: verbose exporter log
run: |
docker compose --file docker-compose.yml logs openmldb-exporter
- name: run tests
run: |
docker compose --file docker-compose.yml up --no-recreate --exit-code-from testing testing
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
check_name: Monitoring integration test
comment_title: Monitoring integration test
files: |
./pytest.xml
prod-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: service up
run: |
docker compose --file docker-compose.yml --env-file prod.env up -d grafana
- name: run tests
run: |
docker compose --file docker-compose.yml --env-file prod.env up --no-recreate --exit-code-from testing testing