Skip to content

Commit 82d72e3

Browse files
author
Dennis Labordus
committed
Changed NativeTest execution and moved back to Quarkus 2.4.2.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent c7eafbf commit 82d72e3

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/build-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
5151
- name: Build Native with Maven
5252
if: ${{ github.event_name == 'pull_request' }}
53-
run: ./mvnw -s custom_maven_settings.xml -B clean verify -Pnative
53+
run: ./mvnw -s custom_maven_settings.xml -B -Pnative clean verify
5454
- name: Build with Maven
5555
if: ${{ github.event_name == 'push' }}
5656
run: ./mvnw -s custom_maven_settings.xml -B clean verify

app/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ SPDX-License-Identifier: Apache-2.0
146146
<properties>
147147
<quarkus.package.type>native</quarkus.package.type>
148148
<quarkus.native.container-build>true</quarkus.native.container-build> <!-- Allows for creating a Linux executable without GraalVM being installed -->
149+
<quarkus.container-image.build>true</quarkus.container-image.build> <!-- Also make a Docker Image, so the native test will be executed against the container -->
149150
</properties>
150151

151152
<build>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// SPDX-License-Identifier: Apache-2.0
44
package org.lfenergy.compas.scl.auto.alignment.rest;
55

6-
import io.quarkus.test.junit.NativeImageTest;
6+
import io.quarkus.test.junit.QuarkusIntegrationTest;
77

8-
@NativeImageTest
8+
@QuarkusIntegrationTest
99
class NativeHealthCheckIT extends HealthCheckTest {
1010
// Execute the same tests but in native mode.
1111
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SPDX-License-Identifier: Apache-2.0
2626

2727
<compas.core.version>0.6.0</compas.core.version>
2828

29-
<quarkus.platform.version>2.5.1.Final</quarkus.platform.version>
29+
<quarkus.platform.version>2.4.2.Final</quarkus.platform.version>
3030
<slf4j.version>1.7.32</slf4j.version>
3131
<powsybl.sld.version>2.5.1</powsybl.sld.version>
3232
<gson.version>2.8.9</gson.version>

0 commit comments

Comments
 (0)