-
Notifications
You must be signed in to change notification settings - Fork 245
43 lines (42 loc) · 1.41 KB
/
validate-data.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
name: Validate Topology data
on: [push, pull_request]
jobs:
validate-data:
# 'name' must match TARGET_CHECK_RUN_NAME as defined in webhook_app.py
name: Validate Topology data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.15
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install libxml2-utils apache2-dev libldap2-dev libsasl2-dev libyaml-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-apache.txt
- name: Verify XML Schema
env:
GH_EVENT: ${{ github.event_name }}
CONTACT_DB_KEY: ${{ secrets.CONTACT_DB_KEY }}
run: ./src/tests/test_verify_schema.sh
- name: Validate downtimes
run: |
./src/tests/verify_downtimes.py
./src/tests/verify_unique_downtime_ids.sh
- name: Validate Resources
run: ./src/tests/verify_resources.py
- name: Validate Site Names
run: |
./src/tests/verify_site_names.sh
- name: Validate Projects
run: |
./src/tests/verify_projects.py
- name: Validate StashCache authfile generation
run: |
./src/tests/verify_authfile.sh
./src/tests/verify_origin_authfile.sh