diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-11-17 17:18:15 +0100 |
---|---|---|
committer | Albert Krewinkel <albert+github@zeitkraut.de> | 2020-11-19 22:09:52 +0100 |
commit | d2862421315a0be59e2e2ec088b9b24928224aa2 (patch) | |
tree | 6b4f6fc17364f639969754c3ade00fee604a9bb3 /.github | |
parent | 0c8ab8a12f69cdb2868ffe223aa938044fd447b4 (diff) | |
download | pandoc-d2862421315a0be59e2e2ec088b9b24928224aa2.tar.gz |
JATS writer: support advanced table features
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/format-validation.yml | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/.github/workflows/format-validation.yml b/.github/workflows/format-validation.yml index 2104f9da1..a0a5b34b7 100644 --- a/.github/workflows/format-validation.yml +++ b/.github/workflows/format-validation.yml @@ -10,6 +10,9 @@ on: - 'test/writer.jats_publishing' - 'test/writer.jats_archiving' - 'test/tables.jats_archiving' + - 'test/tables/nordics.jats_archiving' + - 'test/tables/planets.jats_archiving' + - 'test/tables/students.jats_archiving' pull_request: branches: - '*' @@ -19,6 +22,9 @@ on: - 'test/writer.jats_publishing' - 'test/writer.jats_archiving' - 'test/tables.jats_archiving' + - 'test/tables/nordics.jats_archiving' + - 'test/tables/planets.jats_archiving' + - 'test/tables/students.jats_archiving' jobs: jats: @@ -65,13 +71,18 @@ jobs: EOF )" jats_file="$(mktemp jats-tables.XXXXX)" - printf "$tmpl" "$(cat test/tables.jats_archiving)" > "$jats_file" - json="$(curl --form "xml=@${jats_file}" --silent "$VALIDATOR_URL")" - err_count="$(printf "%s" "$json" | jq '.errors | length')" - if [ "$err_count" -eq 0 ]; then - printf "Table output is valid when used as body content.\n" - exit 0 - else - printf "Validator report:\n%s" "$json" - exit 1 - fi + exit_code=0 + for f in tables tables/nordics tables/planets tables/students; do + filename=test/$f.jats_archiving + printf "Validating %s...\n" "$filename" + printf "$tmpl" "$(cat $filename)" > "$jats_file" + json="$(curl --form "xml=@${jats_file}" --silent "$VALIDATOR_URL")" + err_count="$(printf "%s" "$json" | jq '.errors | length')" + if [ "$err_count" -eq 0 ]; then + printf "Table output is valid when used as body content.\n" + else + printf "Validator report:\n%s" "$json" + exit_code=1 + fi + done + exit "$exit_code" |