-
Notifications
You must be signed in to change notification settings - Fork 19
231 lines (201 loc) · 6.79 KB
/
ci.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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
name: Continuous integration
on:
pull_request: # All
push:
branches:
- main
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@v4
with:
submodules: true
- name: Python lint
run: make python-lint
- name: Automated hygiene verification
run: make check-hygiene
- name: uss_qualifier documentation validation
run: make validate-uss-qualifier-docs
- name: Shell lint
run: make shell-lint
mock_uss-test:
name: mock_uss tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: mock_uss
script: |
cd monitoring/mock_uss
make test
uss_qualifier-noop-test:
name: uss_qualifier configurations.dev.noop tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-noop-test
script: |
export CONFIG_NAME="configurations.dev.noop"
cd monitoring/uss_qualifier
make test
uss_qualifier-geoawareness_cis-test:
name: uss_qualifier configurations.dev.geoawareness_cis tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-geoawareness_cis-test
script: |
export CONFIG_NAME="configurations.dev.geoawareness_cis"
cd monitoring/uss_qualifier
make test
uss_qualifier-generate_rid_test_data-test:
name: uss_qualifier configurations.dev.generate_rid_test_data tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-generate_rid_test_data-test
script: |
export CONFIG_NAME="configurations.dev.generate_rid_test_data"
cd monitoring/uss_qualifier
make test
uss_qualifier-geospatial_comprehension-test:
name: uss_qualifier configurations.dev.geospatial_comprehension tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-geospatial_comprehension-test
script: |
export CONFIG_NAME="configurations.dev.geospatial_comprehension"
cd monitoring/uss_qualifier
make test
uss_qualifier-general_flight_auth-test:
name: uss_qualifier configurations.dev.general_flight_auth tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-general_flight_auth-test
script: |
export CONFIG_NAME="configurations.dev.general_flight_auth"
cd monitoring/uss_qualifier
make test
uss_qualifier-message_signing-test:
name: uss_qualifier configurations.dev.message_signing tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-message_signing-test
script: |
export CONFIG_NAME="configurations.dev.message_signing"
cd monitoring/uss_qualifier
make test
uss_qualifier-dss_probing-test:
name: uss_qualifier configurations.dev.dss_probing tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-dss_probing-test
script: |
export CONFIG_NAME="configurations.dev.dss_probing"
cd monitoring/uss_qualifier
make test
uss_qualifier-f3548_self_contained-test:
name: uss_qualifier configurations.dev.f3548_self_contained tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-f3548_self_contained-test
script: |
export CONFIG_NAME="configurations.dev.f3548_self_contained"
cd monitoring/uss_qualifier
make test
uss_qualifier-utm_implementation_us-test:
name: uss_qualifier configurations.dev.utm_implementation_us tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-utm_implementation_us-test
script: |
export CONFIG_NAME="configurations.dev.utm_implementation_us"
cd monitoring/uss_qualifier
make test
uss_qualifier-netrid_v22a-test:
name: uss_qualifier configurations.dev.netrid_v22a tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-netrid_v22a-test
script: |
export CONFIG_NAME="configurations.dev.netrid_v22a"
cd monitoring/uss_qualifier
make test
uss_qualifier-netrid_v19-test:
name: uss_qualifier configurations.dev.netrid_v19 tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-netrid_v19-test
script: |
export CONFIG_NAME="configurations.dev.netrid_v19"
cd monitoring/uss_qualifier
make test
uss_qualifier-uspace-test:
name: uss_qualifier configurations.dev.uspace tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: uss_qualifier-uspace-test
script: |
export CONFIG_NAME="configurations.dev.uspace"
cd monitoring/uss_qualifier
make test
prober-test:
name: prober tests
uses: ./.github/workflows/monitoring-test.yml
with:
name: prober
script: |
cd monitoring/prober
make test
publish-gh-pages:
name: Publish GitHub Pages
needs:
- hygiene-tests
- mock_uss-test
- uss_qualifier-noop-test
- uss_qualifier-geoawareness_cis-test
- uss_qualifier-generate_rid_test_data-test
- uss_qualifier-geospatial_comprehension-test
- uss_qualifier-general_flight_auth-test
- uss_qualifier-message_signing-test
- uss_qualifier-dss_probing-test
- uss_qualifier-f3548_self_contained-test
- uss_qualifier-utm_implementation_us-test
- uss_qualifier-netrid_v22a-test
- uss_qualifier-netrid_v19-test
- uss_qualifier-uspace-test
- prober-test
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
path: monitoring
- name: Get uss_qualifier reports
uses: actions/download-artifact@v4
with:
path: ./artifacts
- name: Make site content
run: ./monitoring/github_pages/make_site_content.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
enable_jekyll: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: ${{ github.event.head_commit.message }}