Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

feat(ci): enhance FHIR validation workflow with precheck summaries and artifact uploads#28

Merged
patrick-werner merged 1 commit into
mainfrom
update-ci
May 18, 2026
Merged

feat(ci): enhance FHIR validation workflow with precheck summaries and artifact uploads#28
patrick-werner merged 1 commit into
mainfrom
update-ci

Conversation

@patrick-werner
Copy link
Copy Markdown
Owner

This pull request significantly improves the FHIR validation workflow by introducing a dedicated precheck step for meta.profile requirements, enhancing reporting, and making the validation process more robust and transparent. It also updates the versions of several GitHub Actions for improved compatibility and security. The key changes are grouped below:

FHIR Validation Workflow Improvements (.github/workflows/fhir-validation.yml):

  • Introduced a precheck step to verify that all candidate resources contain a meta.profile field with at least one entry starting with the required prefix (http://hl7.eu/fhir/). The precheck results (including counts and file lists for failures) are outputted and used to gate the main validation steps. [1] [2] [3] [4] [5]
  • Validation steps (Java setup, validator download/cache, execution, summary rendering) are now only run if the precheck passes, preventing unnecessary validation runs on non-compliant files. [1] [2] [3] [4] [5]
  • Added a detailed precheck summary artifact (precheck-summary.md) that is always generated and uploaded, listing missing profiles and missing prefixes (with truncation for large lists), and marking pass/fail status for use in PR comments. [1] [2]
  • The workflow now fails early with a clear message if the precheck does not pass, rather than proceeding to the full validator.

Pull Request Comment Enhancements (.github/workflows/pr-comment.yml):

  • The PR comment workflow now fetches and includes the precheck summary artifact. If the precheck failed, the summary is prepended to the main validation comment, ensuring reviewers see precheck results first. [1] [2] [3] [4] [5]

GitHub Actions Version Updates:

  • Updated several GitHub Actions to newer versions for improved stability and support: actions/checkout@v4, actions/setup-java@v4, actions/cache@v4, actions/download-artifact@v4, and actions/upload-pages-artifact@v3. [1] [2] [3] [4] [5]

These changes collectively make the validation process more reliable, provide clearer feedback to contributors, and ensure that only compliant resources proceed to full validation.

@patrick-werner patrick-werner merged commit 05feb48 into main May 18, 2026
1 check passed
@patrick-werner patrick-werner deleted the update-ci branch May 18, 2026 07:10
@github-actions
Copy link
Copy Markdown
Contributor

FHIR Validation Summary

No validation summary artifact was available for this run.

Artifacts

Download fhir-validation-html-report (includes validation.html and validation.json)

Validation run: https://github.com/patrick-werner/ehds-examples/actions/runs/26018888457

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant