Skip to content

Commit

Permalink
Trigger tests only when profile test is specified
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <[email protected]>
  • Loading branch information
kornys committed Jul 30, 2024
1 parent 24f64ac commit 0137243
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
${{ runner.os }}-${{ matrix.version }}-maven-
- name: Build
run: ./mvnw --batch-mode install -DskipITs=true
run: ./mvnw --batch-mode install -P get-operator-files

- name: Run spotbugs check
run: ./mvnw spotbugs:check
2 changes: 1 addition & 1 deletion .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
uses: helm/kind-action@v1

- name: Verify
run: ./mvnw verify -Dgroups=smoke
run: ./mvnw verify -P test -Dgroups=smoke
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
<maven.compile.plugin.version>3.13.0</maven.compile.plugin.version>
<maven.dependency.version>3.7.0</maven.dependency.version>
<maven.download.plugin.version>1.9.0</maven.download.plugin.version>

<skipITs>true</skipITs>
</properties>

<dependencies>
Expand Down Expand Up @@ -266,6 +268,15 @@
</build>

<profiles>
<profile>
<id>test</id>
<properties>
<skipITs>false</skipITs>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
</profile>
<profile>
<id>get-operator-files</id>
<activation>
Expand Down

0 comments on commit 0137243

Please sign in to comment.