Skip to content

Correct order

Correct order #9

Workflow file for this run

# This is a simple workflow that runs the publisher and copies the output to https://<owner>.github.io/<repo>/index.html
# Based on the idea from Carl Leitner, first implemented by Elliot Silver, available from: https://www.argentixinfo.com/archives/156
name: Publisher and validator Test
# Controls when the action will run.
on:
workflow_call: # Reusable by other workflows
# Triggers the workflow on push or pull request events for any branch
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Get branch name
run: echo ${GITHUB_REF##*/}
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Update the image to the latest publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
# Get the latest publisher - don't run the batch script but run the line directly
args: curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar --create-dirs
- name: Run the IG publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
args: java -jar ./input-cache/publisher.jar publisher -ig .
- name: en_US.UTF-8
run: |
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
- name: Download validator-cli
run: curl -L https://github.com/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar -o validator_cli.jar
- name: Run the FHIR validator
run: java -jar validator_cli.jar ./fsh-generated/resources -version 5.0.0 -output data-validation-compact.html -output-style compact -level errors -allow-example-urls true -level errors -ig hl7.fhir.uv.emedicinal-product-info
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: validation-report
path: data-validation-compact.html
retention-days: 5