-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.31 KB
/
validation.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
name: Validation
on:
push:
pull_request:
# Allow running this workflow manually from the Actions tab
workflow_dispatch:
jobs:
export:
name: Export Pipeline Validation
runs-on: ubuntu-latest
steps:
- name: Checkout osm2vdv462
uses: actions/checkout@v3
- name: Run export pipeline with example data
run: |
for file in ./example_data/*; do
echo "Export $file"
./export.sh "$file"
done
- name: Upload exported files as artifact
uses: actions/upload-artifact@v3
with:
name: example_export
path: ./*_export.xml
validate:
name: NeTEx Schema Validation
runs-on: ubuntu-latest
needs: export
steps:
- name: Checkout NeTEx XSD
uses: actions/checkout@v3
with:
repository: NeTEx-CEN/NeTEx
- name: Install xmllint
run: sudo apt-get install libxml2-utils
- name: Download example export
uses: actions/download-artifact@v3
with:
name: example_export
path: ./example_export/
- name: Validate example export against NeTEx XSD
run: |
for file in ./example_export/*; do
echo "Validate $file"
xmllint --noout --schema xsd/NeTEx_publication.xsd "$file"
done