CI (FHIR Validation) #80
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
| name: CI (FHIR Validation) | |
| on: | |
| push: | |
| branches: [ main, dev ] | |
| pull_request: | |
| branches: [ main, dev ] | |
| workflow_dispatch: | |
| jobs: | |
| JAVA_FHIR_VALIDATION: | |
| # TEST (temporär, vor Merge zurück auf @master): Staging-Terminologieserver | |
| # ontoserver-staging.su-termserv.de via meta-Branch staging-tx-test — nur | |
| # dieses Modul testet Staging, alle anderen bleiben auf @master. | |
| uses: medizininformatik-initiative/kerndatensatz-meta/.github/workflows/ci_java_validation.yml@staging-tx-test | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| PATH_TO_CONFORMANCE_RESOURCES: fsh-generated/resources | |
| PATH_TO_EXAMPLES: fsh-generated/resources | |
| JAVA_VALIDATION_ENABLED: true | |
| JAVA_VALIDATION_OPTIONS: ${{ vars.JAVA_VALIDATION_OPTIONS }} | |
| JAVA_VALIDATOR_VERSION: ${{ vars.JAVA_VALIDATOR_VERSION }} | |
| VALIDATION_REPORT_INCLUDE: errors | |
| VALIDATION_REPORT_FILTERS: | | |
| #Skip issue with LOINC defined VS | |
| Observation-QualitaetspruefungBuffyCoat.json||*There is no declared filter called LIST*|Observation.component[1].value.ofType(CodeableConcept) | |
| #Skip issue with CLO prefix (CodeSystem) | |
| Specimen-OrganoidLunge.json||*in the CodeSystem 'http://purl.obolibrary.org/obo/clo.owl'*|Specimen.extension[1].extension[0].value.ofType(CodeableConcept)* | |
| #Skip issue with CLO prefix (ValueSet) | |
| Specimen-OrganoidLunge.json||*in the value set 'MII VS Biobank Cellline Modification CLO'*|Specimen.extension[1].extension[0].value.ofType(CodeableConcept)* | |
| #Template-Maschinerie (MII-KDS-Modul-Template, CRMI-Extensions der IG-Ressource) — Migration PR #81: | |
| #R5-CodeSystem version-algorithm ist dem R4-Validator/tx unbekannt (artifact-versionAlgorithm-Extension, Konvention aus kerndatensatz-basis) | |
| ImplementationGuide-mii-ig-biobank-de-v2026.json||*Unknown Code System 'http://hl7.org/fhir/version-algorithm'*|ImplementationGuide.extension* | |
| ImplementationGuide-mii-ig-biobank-de-v2026.json||*No definition could be found for URL value 'http://hl7.org/fhir/version-algorithm'*|ImplementationGuide.extension* | |
| #Code 'package' existiert erst in neuerem THO als der vom Validator aufgeloesten Version 5.2.0 (artifact-versionPolicy) | |
| ImplementationGuide-mii-ig-biobank-de-v2026.json||*Unknown code 'package' in the CodeSystem 'http://terminology.hl7.org/CodeSystem/artifact-version-policy-codes'*|ImplementationGuide.extension* | |
| #Paketaufloesungs-Artefakt: Validator zieht crmi als Ballot-tgz von packages2, dessen Canonical vom IG-Canonical abweicht | |
| ImplementationGuide-mii-ig-biobank-de-v2026.json||*The packageId hl7.fhir.uv.crmi points to the canonical*|ImplementationGuide.dependsOn* | |
| secrets: inherit | |
| DOTNET_FHIR_VALIDATION: | |
| if: github.event_name != 'release' | |
| uses: medizininformatik-initiative/kerndatensatz-meta/.github/workflows/ci_dotnet_validation.yml@master | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref || github.ref }} | |
| SUSHI_VERSION: ${{ vars.SUSHI_VERSION }} | |
| secrets: inherit | |
| RELEASE: | |
| if: startsWith(github.ref, 'refs/tags/v') && github.event_name != 'release' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Prepare version | |
| id: prep-version | |
| run: | | |
| VERSION=${GITHUB_REF#refs/tags/} | |
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "${{ steps.prep-version.outputs.version }}" | |
| draft: true | |
| prerelease: ${{ contains(steps.prep-version.outputs.version, '-') }} | |
| generate_release_notes: true | |
| body: | | |
| ## MII IG Basis Release ${{ steps.prep-version.outputs.version }} | |
| <!-- DELETE START --> | |
| Download the FHIR package and manually attach it to this release. | |
| <!-- DELETE END --> | |
| ### Changes | |
| <!-- DELETE START --> | |
| Add your own release notes here. | |
| <!-- DELETE END --> | |
| See the auto-generated release notes below. | |
| NOTIFY_ZULIP: | |
| if: github.event_name == 'release' && github.event.action == 'published' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Post release to Zulip | |
| uses: zulip/github-actions-zulip/send-message@v1 | |
| with: | |
| api-key: ${{ secrets.ZULIP_API_KEY }} | |
| email: "kds-github-bot@mii.zulipchat.com" | |
| organization-url: "https://mii.zulipchat.com/" | |
| to: "MII-Kerndatensatz" | |
| type: "stream" | |
| topic: "Releases" | |
| content: | | |
| **New Release:** `${{ github.event.release.tag_name }}` | |
| **Repository:** `${{ github.repository }}` | |
| ${{ github.event.release.body }} | |
| 🔗 [View on GitHub](${{ github.event.release.html_url }}) |