Skip to content

Commit

Permalink
Add Maven Option to Skip Unit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trobanga authored and knoppiks committed Jul 11, 2024
1 parent d3a2eb8 commit 34e21e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: mvn ${MAVEN_ARGS} test --projects ${{ matrix.agent }}

- name: Integration Tests
run: mvn ${MAVEN_ARGS} verify --projects ${{ matrix.agent }} -DskipTests
run: mvn ${MAVEN_ARGS} verify --projects ${{ matrix.agent }} -DskipUnitTests

- name: Build Agent
run: mvn ${MAVEN_ARGS} install --projects ${{ matrix.agent }} -DskipTests -DskipITs
run: mvn ${MAVEN_ARGS} install --projects ${{ matrix.agent }} -DskipTests
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

Expand Down Expand Up @@ -28,6 +29,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot.version>3.2.5</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<skipUnitTests>false</skipUnitTests>
</properties>

<repositories>
Expand Down Expand Up @@ -112,6 +114,9 @@
<version>${junit-jupiter.version}</version>
</dependency>
</dependencies>
<configuration>
<skip>${skipUnitTests}</skip>
</configuration>
</plugin>

<plugin>
Expand Down

0 comments on commit 34e21e6

Please sign in to comment.