Skip to content

Commit

Permalink
Added coveralls code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
renelink committed Oct 13, 2023
1 parent eef61d6 commit a86bd5c
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: mvn -Pcoveralls -B package coveralls:report --file pom.xml

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
![Java CI with Maven](https://github.com/link-intersystems/java-event-sourcing/actions/workflows/maven.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/link-intersystems/java-event-sourcing/badge.svg?branch=main)](https://coveralls.io/github/link-intersystems/java-event-sourcing?branch=main)

# Event-Sourcing Implementation Examples in Java
106 changes: 106 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,110 @@
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>coveralls</id>
<activation>
<property>
<name>env.COVERALLS_TOKEN</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<id>jacoco-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>jacoco-report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
<configuration>
<!--suppress UnresolvedMavenProperty -->
<repoToken>${env.COVERALLS_TOKEN}</repoToken>
</configuration>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.4.0-b180830.0359</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>

<organization>
<name>Link Intersystems GmbH</name>
<url>http://www.link-intersystems.com</url>
</organization>

<developers>
<developer>
<id>rene.link</id>
<name>René Link</name>
<organization>Link Intersystems GmbH</organization>
<organizationUrl>http://www.link-intersystems.com</organizationUrl>
<email>rene.link@link-intersystems.com</email>
<timezone>Europe/Berlin</timezone>
<url>http://stackoverflow.com/users/974186/ren%C3%A9-link</url>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
</project>

0 comments on commit a86bd5c

Please sign in to comment.