Skip to content

Commit

Permalink
enabled Coveralls in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Apr 24, 2021
1 parent 6eda145 commit c1262a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/maven.yml
Expand Up @@ -22,6 +22,13 @@ jobs:
restore-keys: ${{ runner.os }}-m2-
- name: Unit and Integration Tests
run: mvn verify -Pjacoco
- name: Coveralls Report
run: >
mvn coveralls:report
-DrepoToken=$COVERALLS_REPO_TOKEN
-DpullRequest=${{ github.event.pull_request.number }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
- name: End-to-end tests
run: xvfb-run mvn verify -Pe2e-tests

11 changes: 10 additions & 1 deletion pom.xml
Expand Up @@ -203,6 +203,15 @@
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
<dependencies>
<!-- This is required when using JDK 9 or higher
since javax.xml.bind has been removed from the JDK -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
Expand All @@ -224,7 +233,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.3</version>
<version>0.8.6</version>
<configuration>
<excludes>
<exclude>**/*Application.*</exclude>
Expand Down

0 comments on commit c1262a3

Please sign in to comment.