-
Notifications
You must be signed in to change notification settings - Fork 101
201 lines (196 loc) · 6.14 KB
/
Copy pathci.yml
File metadata and controls
201 lines (196 loc) · 6.14 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
name: Continuous integration
on:
pull_request: # All
push:
branches:
- master
jobs:
hygiene-tests:
name: Repository hygiene
runs-on: ubuntu-latest
steps:
- name: Job information
run: |
echo "Job information"
echo "Trigger: ${{ github.event_name }}"
echo "Host: ${{ runner.os }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.ref }}"
docker images
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Python lint
run: make python-lint
- name: Automated hygiene verification
run: make hygiene
- name: Shell lint
run: make shell-lint
- name: Go lint
run: make go-lint
- name: Terraform lint
run: make terraform-lint
- name: Ensure files don't change when generating apis
run: |
git diff --exit-code -- '*.gen.go' # Should not have been changed by previous steps
make apis
git diff --exit-code -- '*.gen.go' # Should not have been changed my make apis
- name: Ensure files don't change when running hygiene
run: |
git diff --exit-code
dss-tests:
name: DSS tests
runs-on: ubuntu-latest
steps:
# See https://github.com/golang/go/issues/75031, can be removed when fixed
- name: Set go tool chain version
run: go env -w GOTOOLCHAIN=go1.25.5+auto
- name: Job information
run: |
echo "Job information"
echo "Trigger: ${{ github.event_name }}"
echo "Host: ${{ runner.os }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.ref }}"
docker images
go env
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Deployment infrastructure tests
run: make evaluate-tanka
- name: Go unit tests
run: make test-go-units
- name: Go unit tests with CockroachDB
run: make test-go-units-crdb
- name: Build dss image
run: make build-dss
- name: Tear down any pre-existing local DSS instance
run: make down-locally
- name: Start local DSS instance
run: make start-locally
- name: Probe local DSS instance
run: make probe-locally
- name: Run Qualifier against local DSS instance
run: make qualify-locally
- name: Run evict tests against local DSS instance
run: make evict-locally
- name: Run security tests against local DSS instance
run: make security-locally
- name: Bring down local DSS instance
run: make down-locally
- name: Collect coverage data
run: make coverage-report-go
- name: Save coverage data
if: startsWith(github.ref, 'refs/heads/master')
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: coverage.out
dss-tests-with-yugabyte:
name: DSS tests with Yugabyte
runs-on: ubuntu-latest
env:
COMPOSE_PROFILES: with-yugabyte
steps:
- name: Job information
run: |
echo "Job information"
echo "Trigger: ${{ github.event_name }}"
echo "Host: ${{ runner.os }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.ref }}"
docker images
go env
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Build dss image
run: make build-dss
- name: Tear down any pre-existing local DSS instance
run: make down-locally
- name: Start local DSS instance
run: make start-locally
- name: Probe local DSS instance
run: make probe-locally
- name: Run Qualifier against local DSS instance
run: make qualify-locally
- name: Run evict tests against local DSS instance
run: make evict-locally
- name: Run security tests against local DSS instance
run: make security-locally
- name: Bring down local DSS instance
run: make down-locally
dss-tests-with-raft:
name: DSS tests with Raft
runs-on: ubuntu-latest
env:
COMPOSE_PROFILES: with-raft
steps:
- name: Job information
run: |
echo "Job information"
echo "Trigger: ${{ github.event_name }}"
echo "Host: ${{ runner.os }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.ref }}"
docker images
go env
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Build dss image
run: make build-dss
- name: Tear down any pre-existing local DSS instance
run: make down-locally
- name: Start local DSS instance
run: make start-locally
- name: Probe local DSS instance
run: make probe-locally
- name: Run Qualifier against local DSS instance
run: make qualify-locally
# Todo: Re add evict tests here once evict is implemented.
- name: Run security tests against local DSS instance
run: make security-locally
- name: Bring down local DSS instance
run: make down-locally
certificates-management-tests:
name: Certificate management tests
runs-on: ubuntu-latest
steps:
- name: Job information
run: |
echo "Job information"
echo "Trigger: ${{ github.event_name }}"
echo "Host: ${{ runner.os }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.ref }}"
docker images
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Tests
run: cd test/certificates-management/ && python test.py
db-tests:
name: Database tests
runs-on: ubuntu-latest
steps:
- name: Job information
run: |
echo "Job information"
echo "Trigger: ${{ github.event_name }}"
echo "Host: ${{ runner.os }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.ref }}"
docker images
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Check migrations
run: ./test/migrations/up_and_down.sh