Skip to content

chore(deps): update github-actions #301

chore(deps): update github-actions

chore(deps): update github-actions #301

name: validate-fhir-resources
on:
pull_request:
branches: [master]
push:
branches: [master]
permissions: read-all
jobs:
validate-fhir-resource:
name: Validate FHIR resources
runs-on: ubuntu-22.04
container: ghcr.io/miracum/ig-build-tools:v2.1.0@sha256:a383d7883da63e32604aa7e37bcaa78a4b94ada5e8be5b6ccb434324d88cb83e
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install Firely.Terminal
run: |
dotnet tool install --global Firely.Terminal --version 3.1.0
fhir --help
- name: Restore FHIR package dependencies
run: |
fhir restore
- name: Validate generated FHIR resources
# TODO: switch to 'xargs' or for loop so if any validation fails, the entire command fails.
# for fhir_file in src/test/java/snapshots/**/*.fhir.json; do fhir validate --verbose --fail "$fhir_file"; done
run: |
find src/test/java/snapshots -name "*.fhir.json" -exec fhir validate --verbose --fail "{}" \;