Skip to content

Commit

Permalink
Merge pull request #206 from NUM-Forschungsdatenplattform/feature/syn…
Browse files Browse the repository at this point in the history
…c-num-main-with-develop-january-2024

Feature/sync num main with develop January 2024
  • Loading branch information
crisdelta authored Jan 22, 2024
2 parents 1814e2f + 90cf771 commit 628db97
Show file tree
Hide file tree
Showing 376 changed files with 19,833 additions and 2,489 deletions.
10 changes: 5 additions & 5 deletions .backups/github/workflows/build-multiarch-image-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push (AMD64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ehrbase/ehrbase:latest-amd64
-
name: Build and push (ARM64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
Expand Down
10 changes: 5 additions & 5 deletions .backups/github/workflows/build-multiarch-image-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@ jobs:
# Set as Environment for all further steps
echo "TAG=${v}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push (AMD64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ehrbase/ehrbase:${{env.TAG}}-amd64

- name: Build and push (ARM64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
Expand Down
10 changes: 5 additions & 5 deletions .backups/github/workflows/build-multiarch-image-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Create TAG ENV from version of release Branch
run: |
Expand All @@ -27,24 +27,24 @@ jobs:
echo "TAG=$TAG" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push (AMD64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ehrbase/ehrbase:tag-amd64
-
name: Build and push (ARM64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
Expand Down
6 changes: 3 additions & 3 deletions .backups/github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand All @@ -48,7 +48,7 @@ jobs:
run: mvn -B verify

- name: Setup Maven Central
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand Down
4 changes: 2 additions & 2 deletions .backups/github/workflows/jdk-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand Down
18 changes: 13 additions & 5 deletions .backups/github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,46 @@ jobs:
steps:
# Install the sdk main in the local repo so maven version plugin can find them
- name: Checkout SDK main
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ehrbase/openEHR_SDK
ref: master
# This will be used by git in all further steps
# We need a PERSONAL ACCESS TOKEN so pushes trigger other github actions
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: install sdk main
run: mvn install -Dmaven.test.skip=true
# Install the sdk dev in the local repo so maven version plugin can find them
- name: Checkout SDK dev
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ehrbase/openEHR_SDK
ref: develop
# This will be used by git in all further steps
# We need a PERSONAL ACCESS TOKEN so pushes trigger other github actions
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: install sdk dev
run: mvn install -Dmaven.test.skip=true
run: mvn install

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# This will be used by git in all further steps
# We need a PERSONAL ACCESS TOKEN so pushes trigger other github actions
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Calculate realise version
- name: Calculate Release Version
run: |
if [ -z "${{ github.event.inputs.version }}" ]
then
Expand Down
43 changes: 38 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ workflows:
- build-ehrbase
- QUERYSERVICE-test-1

- STOREDQUERY-test:
context: org-global
requires:
- build-ehrbase
- QUERYSERVICE-test-1

- QUERYSERVICE-test-1:
context: org-global
requires:
Expand Down Expand Up @@ -271,6 +277,7 @@ workflows:
- EHRSERVICE-test
- EHRSTATUS-test
- KNOWLEDGE-test
- STOREDQUERY-test
- QUERYSERVICE-test-1
- QUERYSERVICE-test-2
- NEWQUERY-test-set
Expand Down Expand Up @@ -467,6 +474,12 @@ workflows:
- build-ehrbase
- QUERYSERVICE-test-2

- STOREDQUERY-test:
context: org-global
requires:
- build-ehrbase
- QUERYSERVICE-test-2

- QUERYSERVICE-test-1:
context: org-global
requires:
Expand Down Expand Up @@ -525,6 +538,7 @@ workflows:
- EHRSERVICE-test
- EHRSTATUS-test
- KNOWLEDGE-test
- STOREDQUERY-test
- QUERYSERVICE-test-1
- QUERYSERVICE-test-2
- NEWQUERY-test-set
Expand Down Expand Up @@ -745,6 +759,10 @@ workflows:
context: org-global
requires:
- build package ehrbase with locally built sdk from sync-branch
- STOREDQUERY-test:
context: org-global
requires:
- build package ehrbase with locally built sdk from sync-branch
- QUERYSERVICE-test-1:
context: org-global
requires:
Expand Down Expand Up @@ -797,6 +815,7 @@ workflows:
- EHRSERVICE-test
- EHRSTATUS-test
- KNOWLEDGE-test
- STOREDQUERY-test
- QUERYSERVICE-test-1
- QUERYSERVICE-test-2
- NEWQUERY-test-set
Expand Down Expand Up @@ -1227,6 +1246,19 @@ jobs:
allow-template-overwrite: false
cache-enabled: false

STOREDQUERY-test:
executor: docker-py3-postgres
steps:
- checkout
- restore-workspace
- git-clone-robot-integration-tests-repo
- move-integration-tests-content-to-local-tests-folder
- run-robot-tests:
include-tags: "stored_query"
test-suite-path: "STORED_QUERY_TESTS"
test-suite-name: "STORED_QUERY"
allow-template-overwrite: true

QUERYSERVICE-test-1:
executor: docker-py3-postgres
steps:
Expand Down Expand Up @@ -1522,7 +1554,7 @@ commands:
--plugin-manager.plugin-dir='tests/test_plugin' \
--plugin-manager.plugin-config-dir='tests/test_plugin_config_dir' \
--cache.enabled=<< parameters.cache-enabled >> > log & app_pid=$!
timeout=60
timeout=360
while [ ! -f ./log ];
do
echo "Waiting for file ./log ..."
Expand All @@ -1536,6 +1568,7 @@ commands:
while ! (cat ./log | grep -m 1 "Started EhrBase in");
do
echo "waiting for EHRbase to be ready ...";
tail -n 5 ./log
if [ "$timeout" == 0 ]; then
echo "WARNING: Did not see a startup message even after waiting 60s"
exit 1
Expand Down Expand Up @@ -1717,7 +1750,7 @@ commands:
name: INSTALL SDK
command: |
cd ~/projects/openEHR_SDK
mvn install -Dmaven.javadoc.skip=true -Djacoco.skip=true -Dmaven.test.skip
mvn install -Dmaven.javadoc.skip=true -Djacoco.skip=true

start-ehrbase-and-run-java-integration-sdk-tests:
Expand Down Expand Up @@ -1994,8 +2027,8 @@ commands:
name: Save unit test results
command: |
mkdir -p ~/ehrbase-test-results/unit-tests/
find ~/projects -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/ehrbase-test-results/unit-tests/ \;
find ~/projects -type f -regex ".*/target/surefire-reports/.*txt" -exec cp {} ~/ehrbase-test-results/unit-tests/ \;
find ~/projects -type f -regex ".*/target/surefire-reports/.*xml" -not -path "~/projects/openEHR_SDK/*" -exec cp {} ~/ehrbase-test-results/unit-tests/ \;
find ~/projects -type f -regex ".*/target/surefire-reports/.*txt" -not -path "~/projects/openEHR_SDK/*" -exec cp {} ~/ehrbase-test-results/unit-tests/ \;
when: always


Expand Down Expand Up @@ -2515,7 +2548,7 @@ commands:
orbs:
maven: circleci/[email protected]
openjdk-install: cloudesire/[email protected]
sonarcloud: sonarsource/sonarcloud@1.0.2
sonarcloud: sonarsource/sonarcloud@2.0.0

executors:
# https://hub.docker.com/u/cimg (circleci next-gen docker images)
Expand Down
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ updates:
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
run: |
if [ ${{ github.ref }} != 'refs/heads/num-main' ]; then
echo "IS NOT num-main branch"
echo "BUILD_VERSION=0.28.x-num-$GITHUB_RUN_NUMBER-PR" >> $GITHUB_ENV
echo "BUILD_VERSION=0.32.x-num-$GITHUB_RUN_NUMBER-PR" >> $GITHUB_ENV
else
echo "IS main branch"
echo "BUILD_VERSION=0.28.x-num-$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
echo "BUILD_VERSION=0.32.x-num-$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
fi
shell: bash

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -78,7 +78,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -91,6 +91,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
Loading

0 comments on commit 628db97

Please sign in to comment.