Skip to content

Commit eaae977

Browse files
committed
Change how test containers run (as a profile)
this ensures it picks up internal argline that is needed.
1 parent 0c73925 commit eaae977

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
distribution: ${{ matrix.distribution }}
2525
java-version: ${{ matrix.java }}
2626
- name: Test with Maven
27-
run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true"
27+
run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" -PtestContainers

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181

8282
<!-- Add slow test groups here and annotate classes similar to @Tag('groupName'). -->
8383
<!-- Excluded groups are ran on github ci, to force here, pass -d"excludedGroups=" -->
84+
<!-- Note: RequireIllegalAccess tests are now no longer valid as they only worked prior to java 16 -->
8485
<excludedGroups>TestcontainersTests,RequireIllegalAccess</excludedGroups>
8586

8687
<!-- Automatic Module Name -->
@@ -422,6 +423,12 @@
422423
</build>
423424

424425
<profiles>
426+
<profile>
427+
<id>testContainers</id>
428+
<properties>
429+
<excludedGroups>RequireIllegalAccess</excludedGroups>
430+
</properties>
431+
</profile>
425432
<profile>
426433
<id>17</id>
427434
<activation>

0 commit comments

Comments
 (0)