Add a GitHub Action and a GitLab CI template - #181
Draft
gronke wants to merge 1 commit into
Draft
Conversation
Both wrap the released standalone jar so XML documents can be validated as part of a pipeline: download the release (optionally SHA-256-verified), run each file against a validation configuration, fail on any rejection with the failing rule ids printed, and expose the reports plus the accepted/rejected counts. The action self-test validates a conformant XRechnung reference instance and asserts a corrupted one is rejected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds CI integration for the validator: a GitHub Action and a GitLab CI template, both wrapping the released standalone jar.
GitHub Action (
action.yml, repo root)Consumers would write
uses: itplr-kosit/validator@<ref>:version(release jar to fetch),checksum(optional SHA-256 pin),configuration(zip URL or local unpacked path),configuration-checksum,files(file/dir/glob),report-dir.accepted,rejected,report-dir.setup-java@v5, Temurin 21); per-filePASS/FAILlines with the failing rule ids grepped from report and output; non-zero exit on any rejection.GitLab template (
gitlab/validator.gitlab-ci.yml)An
include:-able.kosit-validatehidden job oneclipse-temurin:21-jrewith variables mirroring the action inputs; reports uploaded as artifacts. Works on any instance (KoSIT's own home is a self-hosted GitLab).Self-test (
.github/workflows/action-test.yml)Two jobs against the XRechnung 3.0.2 configuration (2026-01-31, checksummed):
01.01amust validate, outputs asserted.outcome == failure).README
A "Continuous Integration" subsection under Usage, following upstream's README conventions.