Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
BC-6934 - next test
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Apr 10, 2024
1 parent d763193 commit f7197b8
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,32 @@ jobs:
echo "sha=$BRANCH_SHA" >> $GITHUB_OUTPUT
fi
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven

- name: build
run: |
./mvnw quarkus:test
ls -la
- name: Upload Report
uses: actions/upload-artifact@v3
if: always()
with:
name: my-report-b
path: ${{ github.workspace }}/target/site/jacoco/jacoco.xml

build:
runs-on: ubuntu-latest
needs:
Expand Down
31 changes: 30 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<quarkus.platform.version>3.8.2</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.2.5</surefire-plugin.version>
<jacoco.version>0.8.12</jacoco.version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -107,6 +108,34 @@
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>default-prepare-agent-integration</id>
<goals>
<goal>prepare-agent-integration</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/jacoco-quarkus.exec</destFile>
<append>true</append>
</configuration>
</execution>
<execution>
<id>report</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/jacoco-quarkus.exec</dataFile>
<outputDirectory>${project.build.directory}/jacoco-report</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand All @@ -118,7 +147,7 @@
</property>
</activation>
<properties>
<skipITs>false</skipITs>
<skipITs>true</skipITs>
<quarkus.package.type>native</quarkus.package.type>
</properties>
</profile>
Expand Down

0 comments on commit f7197b8

Please sign in to comment.