-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (51 loc) · 1.42 KB
/
validate_push.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
name: Validate Push
on:
push:
branches:
- master
defaults:
run:
shell: bash
working-directory: project
jobs:
validate-all-and-build:
runs-on: ubuntu-latest
steps:
# checkout code
- name: Checkout
uses: actions/checkout@v4
with:
path: project
# checkout schema as xmllint can't https
- name: Checkout schema repo
uses: actions/checkout@v4
with:
repository: BetaMasaheft/Schema
path: schema
- name: Install Test Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libxml2-utils
# validate all TEI-files in chunks
- name: Validate files
run: |
find . -type f -name '*.xml' \
-not -name 'facsimile*.xml' \
-not -name 'transkribus*.xml' \
-not -name 'msDesc.xml' \
-not -name 'edition.xml' \
-not -name '*text.xml' \
-not -name 'build.xml' \
-not -name 'repo.xml' \
-not -name 'expath-pkg.xml' \
-print0 | \
xargs -0 \
xmllint --noout --xinclude --nowarning \
--relaxng ../schema/tei-betamesaheft.rng 2>&1 | \
{ grep 'fails to validate' || :; }
- name: Build Expath Package
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- run: ant