-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (33 loc) · 1.25 KB
/
validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Sushi
run: sudo npm install -g fsh-sushi
- name: check out Git repository
uses: actions/checkout@v4
- name: Build resources using Sushi
run: |
cd MiabisOnFHIR
sushi build
- name: Move sushi output different folder
run: |
mkdir sushi-output
mkdir sushi-output/instances
mkdir sushi-output/resources
cp -R MiabisOnFHIR/fsh-generated/resources sushi-output
cd sushi-output/resources
mv *Instance.json ../instances
- name: Download FHIR validator
run: wget https://github.com/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar -O validator_cli.jar
- name: Run FHIR validator
run: java -jar validator_cli.jar -ig sushi-output/resources -version 4.0.1 -extension http://example/org/ -allow-example-urls true sushi-output/instances