Skip to content

Commit

Permalink
Skip tests by default (#6878)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored Jul 24, 2023
1 parent 4a288cb commit 9615acd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: Compile with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -B compile test
run: mvn -B compile test -DskipTests=false
2 changes: 1 addition & 1 deletion .github/workflows/deploy-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
java-package: jdk
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Deploy to GitHub Package Registry
run: mvn -B deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn -B deploy -s $GITHUB_WORKSPACE/settings.xml -DskipTests=false
env:
GITHUB_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: compile towny with maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -B clean package -P no-apidoc
run: mvn -B clean package -P no-apidoc -DskipTests=false
- name: setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down
17 changes: 17 additions & 0 deletions Towny/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<properties>
<java.version>17</java.version>
<project.bukkitAPIVersion>1.16</project.bukkitAPIVersion>
<skipTests>true</skipTests>
</properties>

<scm>
Expand Down Expand Up @@ -472,6 +473,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<skipTests>${skipTests}</skipTests>
</configuration>
</plugin>
</plugins>
<resources>
Expand All @@ -483,6 +487,19 @@
</build>

<profiles>
<profile>
<id>test</id>
<activation>
<property>
<name>maven.test.skip</name>
<value>false</value>
</property>
</activation>
<properties>
<skipTests>false</skipTests>
</properties>
</profile>

<profile>
<id>intellij-idea-only</id>
<activation>
Expand Down

0 comments on commit 9615acd

Please sign in to comment.