-
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 branch 'main-stufe-4' of https://github.com/gematik/spec-ISiK-D…
…okumentenaustausch into TC_4.0.1
- Loading branch information
Showing
20 changed files
with
401 additions
and
74 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
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
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
Oops, something went wrong.