-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.44 KB
/
fhir-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: FHIR Validation
on:
push:
branches:
- main
- master
- staging
- 'v[0-9]+.[0-9]+*' # Approximates v[0-9]+.[0-9]+.* pattern
tags:
- 'v[0-9]+.[0-9]+*' # Trigger for semantic version tags (e.g., v1.2, v1.2.3)
- 'v[0-9]+.[0-9]+.*-*' # Additional pattern for pre-release versions (e.g., v1.2.3-snapshot)
pull_request:
branches:
- main
- master
- staging
- 'v[0-9]+.[0-9]+*' # Approximates v[0-9]+.[0-9]+.* pattern
workflow_dispatch:
env:
LANG: "en_US.UTF-8"
jobs:
fsh-fhir-validation:
runs-on: ubuntu-latest
steps:
# locale must be set explicitly, otherwise fhir validator 5.7.75 fails
- name: set locale
run: |
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
- name: Checkout code
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Prepare environment
run: ./scripts/prepare-environment.sh
- name: Execute validator
run: fsh-validator --all