Skip to content

Commit

Permalink
test action
Browse files Browse the repository at this point in the history
  • Loading branch information
joofio committed Oct 5, 2023
1 parent 38468db commit 850098d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 29 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/publisher.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: CI
name: Publisher and validator Test

# Controls when the action will run.
on:
Expand Down Expand Up @@ -30,26 +30,6 @@ jobs:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# - name: Create gh-pages branch if it doesn't exist
# run: |
# exists=$(git ls-remote --heads origin gh-pages | wc -l)
# if [ "$exists" -eq "0" ]; then
# echo 'gh-pages branch does not exist, creating it'

# # Set placeholder user name and email for Git
# git config user.email "[email protected]"
# git config user.name "Automation bot"

# git checkout --orphan gh-pages
# git reset --hard
# git commit --allow-empty -m "create gh pages"
# git push origin gh-pages
# else
# echo 'gh-pages branch exists'
# fi
# - uses: actions/checkout@v3

- name: Update the image to the latest publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
Expand All @@ -62,15 +42,10 @@ jobs:
args: java -jar ./input-cache/publisher.jar publisher -ig .

- name: Download validator-cli
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/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar -o validator_cli.jar
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
uses: docker://hl7fhir/ig-publisher-base:latest
with:
args: 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
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
Expand Down
6 changes: 5 additions & 1 deletion input/fsh/examples/ogrivi-spl-transformed.fsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
Alias: $ = https://spor.ema.europa.eu/rmswi/
Alias: $epicategory-cs = http://hl7.eu/fhir/ig/gravitate-health/CodeSystem/epicategory-cs
Alias: $list-empty-reason = http://terminology.hl7.org/CodeSystem/list-empty-reason
Expand Down Expand Up @@ -488,4 +489,7 @@ Usage: #inline
* type = $Thesaurus.owl#C73585 "BLA"
* region = urn:iso:std:iso:3166#USA
* meta.profile = "http://hl7.org/fhir/uv/emedicinal-product-info/StructureDefinition/RegulatedAuthorization-uv-epi"
* holder = Reference(http://example.org/Organization/Labeler)
* holder = Reference(http://example.org/Organization/Labeler)
*/

0 comments on commit 850098d

Please sign in to comment.