Skip to content

Commit f728fbf

Browse files
committed
CI: exclude arch tests from native tests
1 parent 8508406 commit f728fbf

File tree

5 files changed

+38
-8
lines changed

5 files changed

+38
-8
lines changed

.github/workflows/native.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: mvn --no-transfer-progress install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true
4343
- name: Test Native
4444
working-directory: ${{matrix.module}}
45-
run: mvn --no-transfer-progress -Pnative test
45+
run: mvn --no-transfer-progress -Pnative -P'!arch-test' test
4646

4747
test-native-ssl:
4848
timeout-minutes: 20
@@ -81,4 +81,4 @@ jobs:
8181
run: mvn --no-transfer-progress install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true
8282
- name: Test Native
8383
working-directory: ${{matrix.module}}
84-
run: mvn --no-transfer-progress -Pnative -Dgroups=ssl -DSslTest=true test
84+
run: mvn --no-transfer-progress -Pnative -P'!arch-test' -Dgroups=ssl -DSslTest=true test

dev-README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ mvn test
5656
```shell
5757
mvn --no-transfer-progress install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true
5858
cd driver
59-
mvn -Pnative test
59+
mvn -Pnative -P'!arch-test' test
6060
```
6161

6262

6363
## test native shaded
6464
```shell
6565
mvn --no-transfer-progress install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true
6666
cd integration-tests
67-
mvn -Pnative test
67+
mvn -Pnative -P'!arch-test' test
6868
```
6969

7070

driver/pom.xml

+34-4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,40 @@
7171
</plugins>
7272
</build>
7373
</profile>
74+
<profile>
75+
<id>arch-test</id>
76+
<activation>
77+
<activeByDefault>true</activeByDefault>
78+
</activation>
79+
<dependencies>
80+
<dependency>
81+
<groupId>com.tngtech.archunit</groupId>
82+
<artifactId>archunit-junit5</artifactId>
83+
</dependency>
84+
</dependencies>
85+
<build>
86+
<plugins>
87+
<plugin>
88+
<groupId>org.codehaus.mojo</groupId>
89+
<artifactId>build-helper-maven-plugin</artifactId>
90+
<version>3.3.0</version>
91+
<executions>
92+
<execution>
93+
<phase>generate-test-sources</phase>
94+
<goals>
95+
<goal>add-test-source</goal>
96+
</goals>
97+
<configuration>
98+
<sources>
99+
<source>${project.basedir}/src/arch-test/java</source>
100+
</sources>
101+
</configuration>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
</plugins>
106+
</build>
107+
</profile>
74108
</profiles>
75109

76110
<build>
@@ -194,10 +228,6 @@
194228
<version>2.13.3</version>
195229
<scope>test</scope>
196230
</dependency>
197-
<dependency>
198-
<groupId>com.tngtech.archunit</groupId>
199-
<artifactId>archunit-junit5</artifactId>
200-
</dependency>
201231
</dependencies>
202232

203233
</project>

0 commit comments

Comments
 (0)