Skip to content

chore(deps): update github-actions #218

chore(deps): update github-actions

chore(deps): update github-actions #218

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.0.55@sha256:21cab0f2b6b3c73a68f1c0e74d5d09f3171a14d294d640a862d51977e9f828e4
steps:
- name: Checkout code
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- 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 "{}" \;