-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from gematik/feature/tool-update-PTDATA-1418
Automatisieren der Publication-Pipeline PTDATA-1006
- Loading branch information
Showing
21 changed files
with
451 additions
and
85 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,18 +37,18 @@ jobs: | |
# Download plantUML jar | ||
- name: Download plantuml file | ||
run: | | ||
wget -O plantuml.jar "https://github.com/plantuml/plantuml/releases/latest/download/plantuml.jar" | ||
wget -O plantuml.jar "https://github.com/plantuml/plantuml/releases/download/v1.2024.2/plantuml.jar" | ||
# Ensure Folder exsists, otherwise, create it | ||
# Clean Folder | ||
- name: Ensure and clean folder | ||
run: | | ||
img_dir=Material/images/diagrams | ||
mkdir -p $img_dir | ||
# do not clean | ||
# rm -rf Material/images/diagrams/*.svg | ||
rm -rf Material/images/diagrams/*.svg | ||
# Generate the SVGs from PUML | ||
- name: Render PUML to SVG files | ||
- name: Render PUML to SVG and Move files | ||
run: | | ||
FileNamePaths=$(find . -path "*/images/src/*/*.puml" -exec dirname {} \; | sort -u) | ||
for dir in $FileNamePaths | ||
|
@@ -72,34 +72,7 @@ jobs: | |
format: svg | ||
action-mode: all | ||
|
||
# Install note.js and bpmn-to-image | ||
- name: Install Notejs and pbmn-to-image | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- run: npm install -g bpmn-to-image | ||
|
||
# Generate the SVGs from BPMN | ||
- name: Render BPMN to SVG files | ||
run: | | ||
FileNamePaths=$(find . -path "*/images/src/*/*.bpmn" -exec dirname {} \; | sort -u) | ||
for dir in $FileNamePaths | ||
do | ||
# Render SVGs from BPMN | ||
echo $dir | ||
FileBaseNames=$(find $dir -name "*.bpmn" -exec basename "{}" ".bpmn" \; | sort -u) | ||
#FileBaseNames=$(find $dir -name "*.bpmn" | xargs -L1 -I{} basename "{}") | ||
for base in $FileBaseNames | ||
do | ||
echo $base | ||
bpmn-to-image "$dir/$base.bpmn":"$dir/$base.svg"; | ||
done | ||
done | ||
# copies the created SVG files to the images/diagrams folder and deletes the drawio files | ||
# mv for copy and delete, here | ||
- name: Move SVGs to target image folder | ||
run: | | ||
img_dir=Material/images/diagrams | ||
|
@@ -108,8 +81,7 @@ jobs: | |
for dir in $FileNamePaths | ||
do | ||
# Move SVGs to out directory | ||
# find $dir -name "*.svg" -exec rm -rf {} $img_dir \; | ||
find $dir -name "*.svg" -exec mv -f {} $img_dir \; | ||
find $dir -name "*.svg" -exec mv {} $img_dir \; | ||
done | ||
## add and commit the new generated files | ||
|
@@ -129,8 +101,4 @@ jobs: | |
with: | ||
commit_user_name: GitHub Actions Bot | ||
commit_user_email: [email protected] | ||
commit_message: auto-generated diagrams by GitHub Action after source code change | ||
|
||
- name: "Run if no changes have been detected" | ||
if: steps.auto-commit-action.outputs.changes_detected == 'false' | ||
run: echo "No Changes!" | ||
commit_message: auto-generated diagrams by GitHub Action after source code change |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
name: TC version update | ||
|
||
# Controls when the action will run. | ||
|
@@ -15,12 +16,12 @@ jobs: | |
steps: | ||
- name: checkout repo content | ||
uses: actions/checkout@v2 # checkout the repository content | ||
|
||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' # install the python version needed | ||
|
||
- name: install python packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
|
@@ -34,4 +35,4 @@ jobs: | |
with: | ||
committer_name: GitHub Actions Bot | ||
committer_email: [email protected] | ||
message: auto-generated file update of TC version by GitHub Actions (CI FSH to FHIR Validation) | ||
message: auto-generated file update of TC version by GitHub Actions (CI FSH to FHIR Validation) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Check Links | ||
# This workflow checks for broken links in the repository. | ||
|
||
on: | ||
pull_request: | ||
# Trigger the workflow on any pull request targeting any branch. | ||
branches: | ||
- '**' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
link_checker: | ||
# Define a job named "link_checker" that runs the link-checking process. | ||
runs-on: ubuntu-latest | ||
# Specify the virtual machine environment to run the job (latest Ubuntu). | ||
|
||
steps: | ||
- name: Checkout repository | ||
# Step 1: Checkout the repository code into the workflow environment. | ||
uses: actions/checkout@v3 | ||
# Use the official GitHub checkout action (version 3). | ||
|
||
- name: Run Link Checker | ||
# Step 2: Run the Lychee link-checking tool. | ||
uses: lycheeverse/lychee-action@v2 | ||
# Use the Lychee GitHub Action (version 2) for link checking. | ||
|
||
with: | ||
fail: true | ||
# Configure the workflow to fail if broken links are found. | ||
# Run the link checker on the current directory and all its contents. | ||
# Exclude links matching the pattern for Jira links (e.g., HL7 Jira). | ||
# Exclude all links in the "ImplementationGuide/style" directory. | ||
# Exclude all links in the "Material" directory. | ||
args: > | ||
. | ||
--exclude-path ImplementationGuide/style | ||
--exclude-path Material | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Use Basis main Stufe 4 main.yml | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
# Controls when the action will run | ||
name: CI (FHIR Validation) | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
|
@@ -11,15 +13,61 @@ on: | |
pull_request: | ||
branches: | ||
- 'main**' | ||
workflow_call: | ||
secrets: | ||
SIMPLIFIER_USERNAME: | ||
required: true | ||
SIMPLIFIER_PASSWORD: | ||
required: true | ||
WORKFLOW_PERMISSION_GITHUB: | ||
required: true | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
|
||
# Validate all resources using Firely Terminal | ||
CI_FHIR_VALIDATION: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
jobs: | ||
call-tool-update: | ||
uses: gematik/spec-isik-basismodul/.github/workflows/main.yml@main-isik-stufe-4 | ||
secrets: | ||
SIMPLIFIER_USERNAME: ${{ secrets.SIMPLIFIER_USERNAME }} | ||
SIMPLIFIER_PASSWORD: ${{ secrets.SIMPLIFIER_PASSWORD }} | ||
WORKFLOW_PERMISSION_GITHUB: ${{ secrets.WORKFLOW_PERMISSION_GITHUB }} | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Checkout code (PR) | ||
uses: actions/checkout@v4 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Checkout code (Main) | ||
uses: actions/checkout@v4 | ||
if: github.event_name != 'pull_request' | ||
|
||
# Java and .NET are already installed on ubuntu-latest | ||
|
||
- name: Firely.Terminal (GitHub Actions) | ||
uses: FirelyTeam/[email protected] | ||
with: | ||
PATH_TO_CONFORMANCE_RESOURCES: Resources/fsh-generated/resources/ | ||
#PATH_TO_EXAMPLES: Examples | ||
PATH_TO_QUALITY_CONTROL_RULES: qc/custom | ||
DOTNET_VALIDATION_ENABLED: true | ||
JAVA_VALIDATION_ENABLED: true | ||
OUTPUT_FORMAT: RAW | ||
JAVA_VALIDATION_OPTIONS: -allow-example-urls true | ||
SIMPLIFIER_USERNAME: ${{ secrets.SIMPLIFIER_USERNAME }} | ||
SIMPLIFIER_PASSWORD: ${{ secrets.SIMPLIFIER_PASSWORD }} | ||
SUSHI_ENABLED: true | ||
SUSHI_OPTIONS: Resources/ | ||
SUSHI_VERSION: 3.12.1 | ||
EXPECTED_FAILS: VALIDATION_CONFORMANCE_DOTNET VALIDATION_CONFORMANCE_JAVA VALIDATION_EXAMPLES_JAVA | ||
|
||
- name: Add & Commit | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
committer_name: GitHub Actions Bot | ||
committer_email: [email protected] | ||
add: 'Resources/fsh-generated/resources/' | ||
message: auto-generated FHIR files by GitHub Actions (CI FSH to FHIR Validation) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
^https?://jira\.hl7\.org | ||
^https?://test\.krankenhaus\.de | ||
^http://hl7\.org/fhir/StructureDefinition/condition-related | ||
^http://hl7\.org/fhir/5\.0/StructureDefinition/extension-Encounter\.plannedStartDate | ||
^http://hl7\.org/fhir/5\.0/StructureDefinition/extension-Encounter\.plannedEndDate | ||
^https://gematik.de/fhir/isik/StructureDefinition/Profile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
{ | ||
"python.testing.unittestArgs": [ | ||
"-v", | ||
"-s", | ||
"C:/Users/nils.kohl/Documents/spec-ISiK-Dokumentenaustausch/tests", | ||
"-p", | ||
"test*.py" | ||
], | ||
"python.testing.unittestEnabled": true, | ||
"python.testing.pytestEnabled": false, | ||
"python.testing.nosetestsEnabled": false, | ||
"python.testing.autoTestDiscoverOnSaveEnabled": true | ||
|
||
} |
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
Oops, something went wrong.