Skip to content

Commit b717acc

Browse files
committed
ci: use local xsd for validation
1 parent 1dc16d9 commit b717acc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ env:
1212

1313
jobs:
1414
test:
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Checkout source code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
1921

2022
- name: REUSE Compliance Check
2123
uses: fsfe/reuse-action@v4

test/validate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ endpoint="${ENDPOINT:-localhost:8000}"
99
tmpfile="${TMPFILE:-validate.xml}"
1010

1111
function vUrl () {
12+
xsddir=../netex-italian-profile/xsd
1213
content=`curl $1`
1314

1415
xmllint --format - <<<"$content" > $tmpfile
15-
xmllint --noout $tmpfile
16+
xmllint --noout --schema $xsddir/NeTEx_publication_Lev4.xsd $tmpfile
1617
}
1718

1819
vUrl $endpoint/netex/parking \

0 commit comments

Comments
 (0)