Skip to content

Commit

Permalink
ci: merge coverages report from multiple module
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Jan 9, 2025
1 parent 47f76c1 commit 1e51c75
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: target/site/jacoco/jacoco.xml
coverage-reports: universal-coverage/target/site/jacoco-aggregate/jacoco.xml
7 changes: 5 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<module>common</module>
<module>r4</module>
<module>r5</module>
<module>universal-coverage</module>
</modules>

<licenses>
Expand Down Expand Up @@ -116,13 +117,15 @@
<version>${jacoco.plugin.version}</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<phase>test-compile</phase>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
Expand Down
55 changes: 55 additions & 0 deletions universal-coverage/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<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>
<parent>
<groupId>jy95.fhir</groupId>
<artifactId>dosage-support</artifactId>
<version>${revision}</version>
</parent>
<artifactId>universal-coverage</artifactId>

<name>Universal Coverage</name>
<description>A comprehensive module for handling global coverage, ensuring seamless integration with FHIR R4 and R5 standards.</description>

<dependencies>

<!-- Add the other modules -->
<dependency>
<groupId>jy95.fhir</groupId>
<artifactId>common</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>jy95.fhir</groupId>
<artifactId>r4</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>jy95.fhir</groupId>
<artifactId>r5</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.plugin.version}</version>
<executions>
<execution>
<id>jacoco-site-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 1e51c75

Please sign in to comment.