Skip to content

Commit d7711ac

Browse files
committed
GitHub Actions should not use forks
1 parent 3db0def commit d7711ac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
gpg-passphrase: MAVEN_GPG_PASSPHRASE
8383

8484
- name: Publish Maven package
85-
run: mvn -Possrh-deploy deploy
85+
run: mvn -B -Possrh-deploy deploy -DskipTests
8686
env:
8787
MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }}
8888
MAVEN_USERNAME: ${{ secrets.nexus_username }}

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@
229229
<artifactId>maven-surefire-plugin</artifactId>
230230
<configuration>
231231
<argLine>--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED</argLine>
232+
<forkCount>1</forkCount>
233+
<reuseForks>false</reuseForks>
232234
</configuration>
233235
</plugin>
234236
</plugins>

0 commit comments

Comments
 (0)