Skip to content

Commit 20c9432

Browse files
author
Dennis Labordus
authored
Merge pull request #270 from com-pas/develop
New release
2 parents ee3ebef + efe0c30 commit 20c9432

File tree

7 files changed

+77
-65
lines changed

7 files changed

+77
-65
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2021 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
1-
# SPDX-FileCopyrightText: 2021 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

55
name: Add issues and pull request to project boards
66

7-
on: [issues, pull_request, pull_request_target]
7+
on: [ issues, pull_request, pull_request_target ]
88

99
jobs:
1010
github-actions-automate-projects:
1111
runs-on: ubuntu-latest
1212

1313
if: ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
1414
steps:
15-
- name: add-new-issues-to-repository-based-project-column
16-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
17-
if: github.event_name == 'issues' && github.event.action == 'opened'
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-cim-mapping/projects/2
21-
GITHUB_PROJECT_COLUMN_NAME: To do
22-
- name: add-new-pull-request-to-repository-based-project-column
23-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
24-
if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-cim-mapping/projects/2
28-
GITHUB_PROJECT_COLUMN_NAME: To do
2915
- name: add-new-issues-to-organization-based-project-column
30-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
3116
if: github.event_name == 'issues' && github.event.action == 'opened'
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
34-
GITHUB_PROJECT_URL: https://github.com/orgs/com-pas/projects/1
35-
GITHUB_PROJECT_COLUMN_NAME: To do
17+
uses: alex-page/[email protected]
18+
with:
19+
project: CoMPAS Issues Overview Board
20+
column: To do
21+
repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
3622
- name: add-new-pull-request-to-organization-based-project-column
37-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
3823
if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
41-
GITHUB_PROJECT_URL: https://github.com/orgs/com-pas/projects/2
42-
GITHUB_PROJECT_COLUMN_NAME: To do
24+
uses: alex-page/[email protected]
25+
with:
26+
project: CoMPAS Pull Request Overview Board
27+
column: To do
28+
repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}

.github/workflows/build-project.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ jobs:
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v3
25-
- name: Set up Docker Buildx
26-
id: buildx
27-
uses: docker/setup-buildx-action@v2
25+
2826
- name: Cache Docker Register
2927
uses: actions/cache@v3
3028
with:
@@ -37,6 +35,9 @@ jobs:
3735
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3836
restore-keys: ${{ runner.os }}-m2
3937

38+
- name: Set up Docker Buildx
39+
id: buildx
40+
uses: docker/setup-buildx-action@v2
4041
- name: Set up JDK 17
4142
uses: actions/setup-java@v3
4243
with:

.github/workflows/release-project.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2021 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -12,17 +12,12 @@ jobs:
1212
push_to_registry:
1313
name: Build and publish
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 15
16+
1517
steps:
1618
- name: Checkout
1719
uses: actions/checkout@v3
18-
- name: Set up Docker Buildx
19-
id: buildx
20-
uses: docker/setup-buildx-action@v2
21-
- name: Login to Docker Hub
22-
uses: docker/login-action@v2
23-
with:
24-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
25-
password: ${{ secrets.DOCKER_HUB_TOKEN }}
20+
2621
- name: Cache Docker Register
2722
uses: actions/cache@v3
2823
with:
@@ -38,13 +33,22 @@ jobs:
3833
- name: Extract tag name
3934
id: extract_tagname
4035
shell: bash
41-
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
36+
# Extract the tag name from the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
4237
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
38+
4339
- name: Set up JDK 17
4440
uses: actions/setup-java@v3
4541
with:
4642
distribution: 'zulu'
4743
java-version: '17'
44+
- name: Set up Docker Buildx
45+
id: buildx
46+
uses: docker/setup-buildx-action@v2
47+
- name: Login to Docker Hub
48+
uses: docker/login-action@v2
49+
with:
50+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
51+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
4852

4953
- name: Create custom Maven Settings.xml
5054
uses: whelk-io/maven-settings-xml-action@v20

.github/workflows/reuse.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2021 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -10,6 +10,7 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- name: REUSE Compliance Check
15-
uses: fsfe/reuse-action@v1
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: REUSE Compliance Check
16+
uses: fsfe/reuse-action@v1

.github/workflows/sonarcloud-analysis.yml

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2021 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -25,14 +25,11 @@ jobs:
2525

2626
if: ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
2727
steps:
28-
- uses: actions/checkout@v3
28+
- name: Checkout
29+
uses: actions/checkout@v3
2930
with:
3031
fetch-depth: 0
31-
- name: Set up JDK 17
32-
uses: actions/setup-java@v3
33-
with:
34-
distribution: 'zulu'
35-
java-version: '17'
32+
3633
- name: Cache SonarCloud packages
3734
uses: actions/cache@v3
3835
with:
@@ -46,20 +43,43 @@ jobs:
4643
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4744
restore-keys: ${{ runner.os }}-m2
4845

46+
- name: Set up JDK 17
47+
uses: actions/setup-java@v3
48+
with:
49+
distribution: 'zulu'
50+
java-version: '17'
51+
52+
- name: Set Common Sonar Variables
53+
id: sonar_env
54+
run: |
55+
echo "##[set-output name=sonar_opts;]$(echo -Dsonar.host.url=https://sonarcloud.io \
56+
-Dsonar.projectKey=com-pas_compas-cim-mapping \
57+
-Dsonar.organization=com-pas )"
4958
- name: Create custom Maven Settings.xml
5059
uses: whelk-io/maven-settings-xml-action@v20
5160
with:
5261
output_file: custom_maven_settings.xml
5362
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
54-
- name: Build and analyze
63+
- name: Build and analyze (Pull Request)
64+
if: ${{ github.event_name == 'pull_request' || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
68+
run: |
69+
./mvnw -B -s custom_maven_settings.xml -Psonar \
70+
${{ steps.sonar_env.outputs.sonar_opts }} \
71+
-Dsonar.pullrequest.branch=${{ github.ref_name }} \
72+
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
73+
-Dsonar.pullrequest.base=${{ github.base_ref }} \
74+
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} \
75+
clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
76+
- name: Build and analyze (Push)
77+
if: ${{ github.event_name == 'push' }}
5578
env:
56-
GITHUB_USERNAME: "OWNER"
5779
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5880
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5981
run: |
60-
./mvnw -s custom_maven_settings.xml -B -Psonar \
61-
-Dsonar.projectKey=com-pas_compas-cim-mapping \
62-
-Dsonar.organization=com-pas \
63-
-Dsonar.host.url=https://sonarcloud.io \
64-
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
65-
clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
82+
./mvnw -B -s custom_maven_settings.xml -Psonar \
83+
${{ steps.sonar_env.outputs.sonar_opts }} \
84+
-Dsonar.branch.name=${{ github.ref_name }} \
85+
clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ SPDX-License-Identifier: Apache-2.0
2323
<surefire-plugin.version>3.0.0-M7</surefire-plugin.version>
2424
<sonarqube-plugin.version>3.2.0</sonarqube-plugin.version>
2525

26-
<compas.core.version>0.9.1</compas.core.version>
26+
<compas.core.version>0.9.3</compas.core.version>
2727

28-
<quarkus.platform.version>2.11.2.Final</quarkus.platform.version>
28+
<quarkus.platform.version>2.12.2.Final</quarkus.platform.version>
2929
<microprofile-openapi-api.version>3.0</microprofile-openapi-api.version>
30-
<slf4j.version>1.7.36</slf4j.version>
31-
<powsybl.version>4.9.2</powsybl.version>
30+
<slf4j.version>2.0.1</slf4j.version>
31+
<powsybl.version>4.10.1</powsybl.version>
3232
<mapstruct.version>1.5.2.Final</mapstruct.version>
3333
<openpojo.version>0.9.1</openpojo.version>
3434
</properties>
@@ -161,7 +161,7 @@ SPDX-License-Identifier: Apache-2.0
161161
<plugin>
162162
<groupId>org.apache.maven.plugins</groupId>
163163
<artifactId>maven-jar-plugin</artifactId>
164-
<version>3.2.2</version>
164+
<version>3.3.0</version>
165165
<executions>
166166
<execution>
167167
<goals>
@@ -250,7 +250,7 @@ SPDX-License-Identifier: Apache-2.0
250250
<plugin>
251251
<groupId>org.apache.maven.plugins</groupId>
252252
<artifactId>maven-javadoc-plugin</artifactId>
253-
<version>3.4.0</version>
253+
<version>3.4.1</version>
254254
<executions>
255255
<execution>
256256
<id>attach-javadocs</id>

0 commit comments

Comments
 (0)