Bump version: 1.5.0 → 1.5.1-snapshot #246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |