-
Notifications
You must be signed in to change notification settings - Fork 7
80 lines (78 loc) · 2.93 KB
/
test.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
name: Tests
on: [push]
jobs:
test-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Go Unit Tests
id: go-unit-tests
run: make test
test-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Start System
id: start-system
run: docker-compose up -d --build postgres lantern-mq endpoint_manager capability_querier capability_receiver
env:
LANTERN_DBHOST: localhost
LANTERN_DBPORT: 5432
LANTERN_DBUSER: lantern
LANTERN_DBPASSWORD: postgrespassword
LANTERN_DBUSER_READONLY: lantern_ro
LANTERN_DBPASSWORD_READONLY: postgrespassword_ro
LANTERN_DBUSER_READWRITE: lantern_rw
LANTERN_DBPASSWORD_READWRITE: lantern_rw
LANTERN_DBNAME: lantern
LANTERN_DBSSLMODE: disable
LANTERN_TEST_DBNAME: lantern_test
LANTERN_TEST_DBUSER: lantern
LANTERN_TEST_DBPASSWORD: postgrespassword
LANTERN_QUSER: capabilityquerier
LANTERN_QPASSWORD: capabilityquerier
LANTERN_QPORT: 5672
LANTERN_QUERY_NUMWORKERS: 10
LANTERN_CAPQUERY_QRYINTVL: 1380
LANTERN_TEST_QUSER: capabilityquerier
LANTERN_TEST_QPASSWORD: capabilityquerier
LANTERN_QHOST: localhost
LANTERN_EXPORT_NUMWORKERS: 25
LANTERN_EXPORT_DURATION: 240
LANTERN_PRUNING_THRESHOLD: 43800
- name: Go Integration Tests
id: go-integration-tests
run: ./scripts/wait-for-it.sh localhost:5432 -- ./scripts/wait-for-it.sh localhost:15672 -- ./scripts/wait-for-it.sh localhost:5672 -- make test_int
test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Start System
id: start-system
run: docker-compose up -d --build postgres lantern-mq endpoint_manager capability_querier capability_receiver
- name: Run E2E Tests
run: make test_e2e_CI
env:
LANTERN_DBHOST: localhost
LANTERN_DBPORT: 5432
LANTERN_DBUSER: lantern
LANTERN_DBPASSWORD: postgrespassword
LANTERN_DBUSER_READONLY: lantern_ro
LANTERN_DBPASSWORD_READONLY: postgrespassword_ro
LANTERN_DBUSER_READWRITE: lantern_rw
LANTERN_DBPASSWORD_READWRITE: lantern_rw
LANTERN_DBNAME: lantern
LANTERN_DBSSLMODE: disable
LANTERN_TEST_DBNAME: lantern_test
LANTERN_TEST_DBUSER: lantern
LANTERN_TEST_DBPASSWORD: postgrespassword
LANTERN_QUSER: capabilityquerier
LANTERN_QPASSWORD: capabilityquerier
LANTERN_QPORT: 5672
LANTERN_QUERY_NUMWORKERS: 10
LANTERN_CAPQUERY_QRYINTVL: 1380
LANTERN_TEST_QUSER: capabilityquerier
LANTERN_TEST_QPASSWORD: capabilityquerier
LANTERN_QHOST: lantern-mq
LANTERN_EXPORT_NUMWORKERS: 25
LANTERN_EXPORT_DURATION: 240