Skip to content

Commit

Permalink
Merge branch 'release/v2.12.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bot committed Jun 6, 2024
2 parents d0d27cd + c830b86 commit b24949c
Show file tree
Hide file tree
Showing 24 changed files with 56 additions and 51 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: "Build & Test"

# we have multiple workflows - this helps to distinguish for them
run-name: "${{ github.event.pull_request.title && github.event.pull_request.title || github.ref_name }} - Build & Test"
Expand Down Expand Up @@ -32,17 +32,10 @@ jobs:
- name: Jacoco - Integration Tests
run: mvn --batch-mode jacoco:prepare-agent-integration failsafe:integration-test failsafe:verify verify jacoco:report

- name: Sonar - Analyze
# Dependabot has no access to the SONAR_TOKEN secret, so we need to skip sonar.
if: ${{ github.actor != 'dependabot[bot]' && github.repository_owner == 'ehrbase' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
mvn --batch-mode sonar:sonar \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=ehrbase \
-Dsonar.projectKey=ehrbase_openEHR_SDK \
-Dsonar.exclusions=test/** \
-Dsonar.coverage.exclusions=test/**,test-data/**/*,opt-14/**/*,response-dto/**/* \
-Dsonar.coverage.jacoco.xmlReportPaths=${{ github.workspace }}/test-coverage/target/site/jacoco-overall-coverage/jacoco.xml
- name: Upload - Jacoco Overall Coverage
if: always()
uses: actions/upload-artifact@v4
with:
name: jacoco-coverage-overall
path: ${{ github.workspace }}/test-coverage/target/site/jacoco-overall-coverage/jacoco.xml
if-no-files-found: error
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ on:
- cron: '43 18 * * 1'

jobs:
analyze:
name: Analyze
codeql:
name: CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ on:
# Style-check it's a dedicated workflow. This allows us to open a PR, run all tests and fix styling issue later ;).
#
jobs:
check-codestyle:
spotless:
name: Spotless-Check
runs-on: ubuntu-latest

steps:
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/report-sonar-results.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Report Sonar Results"

# we have multiple workflows - this helps to distinguish for them
run-name: "${{ github.event.pull_request.title && github.event.pull_request.title || github.ref_name }} - Report Sonar Results"
run-name: "${{ github.event.workflow_run.pull_requests[0].title && github.event.workflow_run.pull_requests[0].title || github.event.workflow_run.head_branch }} - Report Sonar Results"

on:
workflow_run:
Expand All @@ -11,14 +11,18 @@ on:

jobs:
#
# Collect Junit reports generated by build_and_test
# Collect and upload sonar report with coverage generated by the Build & Test workflow
#
collect-junit-reports:
sonar-report:
name: Sonar-Report
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0

- name: Setup - Java 17
Expand All @@ -27,7 +31,7 @@ jobs:
distribution: 'temurin'
java-version: '17'
cache: 'maven'

# Download jacoco overall coverage from build & test output
- name: Download - Jacoco Overall Coverage
uses: actions/download-artifact@v4
Expand All @@ -36,18 +40,20 @@ jobs:
run-id: ${{ github.event.workflow_run.id }} # download artifacts from build and test workflow
pattern: jacoco-coverage-overall # uses artifact of build and test workflow
merge-multiple: true
path: ./
path: ${{ github.workspace }}/target/site/jacoco-overall-coverage

- name: Sonar - Analyze
# Dependabot has no access to the SONAR_TOKEN secret, so we need to skip sonar.
# if: ${{ github.actor != 'dependabot[bot]' && github.repository_owner == 'ehrbase' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
mvn --batch-mode -DskipTests compile sonar:sonar \
-Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }} \
-Dsonar.pullrequest.key=${{ github.event.workflow_run.pull_requests[0].number }} \
-Dsonar.pullrequest.branch=${{ github.event.workflow_run.pull_requests[0].head.ref }} \
-Dsonar.pullrequest.base=${{ github.event.workflow_run.pull_requests[0].base.ref }} \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=ehrbase \
-Dsonar.projectKey=ehrbase_openEHR_SDK \
-Dsonar.exclusions=test/** \
-Dsonar.coverage.exclusions=test/**,test-data/**/*,opt-14/**/*,response-dto/**/* \
-Dsonar.coverage.jacoco.xmlReportPaths=${{ github.workspace }}/test-coverage/target/site/jacoco-overall-coverage/jacoco.xml
-Dsonar.coverage.jacoco.xmlReportPaths=${{ github.workspace }}/target/site/jacoco-overall-coverage/jacoco.xml
2 changes: 1 addition & 1 deletion .github/workflows/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Set test status

on:
workflow_run:
workflows: ["build"]
workflows: ["Build & Test"] # runs after build and test workflow
types:
- completed

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Note: version releases in the 0.x.y range may introduce breaking changes.

## [2.12.0]
### Changed
- Bumped libraries

## [2.11.0]
### Added
- Make AqlObjectPath serializable ([606](https://github.com/ehrbase/openEHR_SDK/pull/606))
Expand Down Expand Up @@ -407,3 +411,4 @@ Note: version releases in the 0.x.y range may introduce breaking changes.
[2.9.1]: https://github.com/ehrbase/openEHR_SDK/compare/v2.9.0...v2.9.1
[2.10.0]: https://github.com/ehrbase/openEHR_SDK/compare/v2.9.1...v2.10.0
[2.11.0]: https://github.com/ehrbase/openEHR_SDK/compare/v2.10.0...v2.11.0
[2.12.0]: https://github.com/ehrbase/openEHR_SDK/compare/v2.11.0...v2.12.0
2 changes: 1 addition & 1 deletion aql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>aql</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<artifactId>bom</artifactId>
<groupId>org.ehrbase.openehr.sdk</groupId>
<version>2.11.0</version>
<version>2.12.0</version>
<packaging>pom</packaging>

<name>openEHR SDK</name>
Expand Down Expand Up @@ -68,7 +68,7 @@
<slf4j.version>1.7.36</slf4j.version>
<xmlbeans.version>3.1.0</xmlbeans.version>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
<maven-gpg-plugin.version>3.2.4</maven-gpg-plugin.version>
<maven-enforcer-plugin.version>3.4.1</maven-enforcer-plugin.version>
<maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>
<maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
Expand Down
2 changes: 1 addition & 1 deletion client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion example-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>sdk-parent</artifactId>
<groupId>org.ehrbase.openehr.sdk</groupId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions generator-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>generator-commons</artifactId>
Expand Down Expand Up @@ -67,7 +67,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.1</version>
<executions>
<execution>
<goals>
Expand Down
4 changes: 2 additions & 2 deletions generator-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>sdk-parent</artifactId>
<groupId>org.ehrbase.openehr.sdk</groupId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -81,7 +81,7 @@
<plugins>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.6.0</version>
<version>3.7.0</version>
<configuration>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<debug>false</debug>
Expand Down
4 changes: 2 additions & 2 deletions generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>generator</artifactId>
Expand Down Expand Up @@ -62,7 +62,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.1</version>
<configuration>
<archive>
<manifest>
Expand Down
2 changes: 1 addition & 1 deletion opt-1.4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>opt-1.4</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>bom</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
<relativePath>./bom/pom.xml</relativePath>
</parent>

<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
<packaging>pom</packaging>
<name>openEHR SDK</name>

Expand Down
2 changes: 1 addition & 1 deletion response-dto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>response-dto</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion serialisation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>serialisation</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion serialisation_conformance_test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>serialisation_conformance_test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion terminology/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>terminology</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>test-coverage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>test-data</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>util</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>validation</artifactId>
Expand Down Expand Up @@ -117,7 +117,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.1</version>
<executions>
<execution>
<goals>
Expand Down
2 changes: 1 addition & 1 deletion web-template/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.11.0</version>
<version>2.12.0</version>
</parent>

<artifactId>web-template</artifactId>
Expand Down

0 comments on commit b24949c

Please sign in to comment.