Skip to content

Commit

Permalink
added code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tisoft committed Mar 2, 2021
1 parent 16ff969 commit 7604ecd
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/maven-deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: "0ae6ed6c800841ebe2c77dbe17f0dff679e51a80daf2b45f6afa40ed8dec60c7"
JACOCO_SOURCE_PATH: "${{github.workspace}}/src/main/java"
with:
coverageLocations: ${{github.workspace}}/target/site/jacoco/jacoco.xml:jacoco
7 changes: 7 additions & 0 deletions .github/workflows/maven-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ jobs:
java-version: 1.8
- name: Build with Maven
run: mvn --no-transfer-progress -B verify -Drevision=${GITHUB_REF##*/} --file pom.xml
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: "0ae6ed6c800841ebe2c77dbe17f0dff679e51a80daf2b45f6afa40ed8dec60c7"
JACOCO_SOURCE_PATH: "${{github.workspace}}/src/main/java"
with:
coverageLocations: ${{github.workspace}}/target/site/jacoco/jacoco.xml:jacoco
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Maven Central](https://img.shields.io/maven-central/v/de.tisoft.rsyntaxtextarea/rsyntaxtextarea-antlr4-extension)](https://search.maven.org/artifact/de.tisoft.rsyntaxtextarea/rsyntaxtextarea-antlr4-extension)
[![GitHub](https://img.shields.io/github/license/tisoft/rsyntaxtextarea-antlr4-extension)](LICENSE)
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/tisoft/rsyntaxtextarea-antlr4-extension)](https://codeclimate.com/github/tisoft/rsyntaxtextarea-antlr4-extension/maintainability)
[![Code Climate coverage](https://img.shields.io/codeclimate/coverage/tisoft/rsyntaxtextarea-antlr4-extension)](https://codeclimate.com/github/tisoft/rsyntaxtextarea-antlr4-extension/coverage)

This project contains an extension for the [RSyntaxTextArea](https://github.com/bobbylight/RSyntaxTextArea) library, that allows the usage of [ANTLR 4](https://www.antlr.org) lexers and parsers.

Expand Down
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<executions>
<execution>
<id>agent-for-ut</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down

0 comments on commit 7604ecd

Please sign in to comment.