@@ -2,15 +2,21 @@ name: Format validation
22
33on:
44 push:
5− paths-ignore:
5+ branches:
66 - '*'
7− - '!/test/writer.*'
8− - '!/test/tables.*'
7+ - '!rc/*'
8+ paths:
9+ - 'test/writer.jats_articleauthoring'
10+ - 'test/writer.jats_publishing'
11+ - 'test/writer.jats_archiving'
912 pull_request:
10− paths-ignore:
13+ branches:
1114 - '*'
12− - '!/test/writer.*'
13− - '!/test/tables.*'
15+ - '!rc/*'
16+ paths:
17+ - 'test/writer.jats_articleauthoring'
18+ - 'test/writer.jats_publishing'
19+ - 'test/writer.jats_archiving'
1420
1521jobs:
1622 jats:
@@ -35,11 +41,11 @@ jobs:
3541 - name: Validate
3642 run: |
3743 filename=test/${{ matrix.file }}.jats_${{ matrix.tagset }}
38− echo "$filename"
44+ printf "Validating file %s\n" "$filename"
3945 json="$(curl --form "xml=@${filename}" --silent "$VALIDATOR_URL")"
40− echo "$json"
4146 err_count="$(echo "$json" | jq '.errors | length')"
4247 if [ "$err_count" -eq 0 ]; then
48+ printf "File was validated successfully.\n"
4349 exit 0
4450 else
4551 printf "Validator report:\n%s" "$json"