Skip to content

Commit

Permalink
Add Github Actions CI/CD and Docker workflows (#62)
Browse files Browse the repository at this point in the history
* add github actions CI workflow

* update pom.xml with correct snapshot versions

* clone latest conflictmonitor as submodule

* update

* re-structure docker worklows to fix docker tags

* build docker images

* Add feature branch name to dockerhub.yml

* Install submodules

* added jacoco for reports

* check jacoco.xml

* fix jacoco path

* fix

* check the output path

* Clean and add comments for readability

* update build name
  • Loading branch information
SaikrishnaBairamoni authored Feb 23, 2024
1 parent 407a9e0 commit 92bf222
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion jpo-conflictvisualizer-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<description>Conflict Visualizer</description>
<properties>
<java.version>21</java.version>
<jacoco.version>0.8.7</jacoco.version>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<sonar.language>java</sonar.language>
<!-- <thymeleaf.version>3.0.3.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.2.1</thymeleaf-layout-dialect.version> -->
</properties>
Expand Down Expand Up @@ -209,6 +213,35 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>generate-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/site/jacoco</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down Expand Up @@ -246,4 +279,4 @@
</plugins>
</build>

</project>
</project>

0 comments on commit 92bf222

Please sign in to comment.