Skip to content

Merge branch 'master' of https://github.com/CARA-ch/ch-emed-epr #107

Merge branch 'master' of https://github.com/CARA-ch/ch-emed-epr

Merge branch 'master' of https://github.com/CARA-ch/ch-emed-epr #107

Workflow file for this run

name: 'Run the validation'
on:
workflow_dispatch: # On manual trigger
push:
branches: [ master, validation ]
pull_request:
branches: [ master ]
jobs:
build:
name: 'Run the validator on resource samples'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
strategy:
fail-fast: false
steps:
- name: 'Checkout the repository'
uses: actions/checkout@v3
- name: 'Install Node and NPM'
uses: actions/setup-node@v3
with:
node-version: 20
- name: 'Install Ruby'
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: 'Install Jekyll'
run: |
gem install jekyll bundler
jekyll -v
- name: 'Compile the IG from sources'
run: |
npm install -g fsh-sushi
curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o publisher.jar
java -jar publisher.jar -ig ig.ini
- name: 'Clone the validator'
run: git clone --branch validation --depth 1 https://github.com/CARA-ch/ch-emed-epr.git
- name: 'Install the JDK'
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: 'Run the validator'
run: |
mvn package --batch-mode --no-transfer-progress --file ./ch-emed-epr/pom.xml
java -jar ./ch-emed-epr/target/validation-runner-jar-with-dependencies.jar