Skip to content

Commit

Permalink
Add jacoco test and action (#190)
Browse files Browse the repository at this point in the history
* Add jacoco test and action

* set version for plugin

* Add logging to help debug

* Remove the path

* add wildcard search

* downgrade action

* Restore fully qualified path to file

* Revert accidental deletion

* Add permission to write-all

* Try pull-requests: write

* Added check that publish can run on non-fork

* update permission

* disable for now

---------

Co-authored-by: Matthew Bain <[email protected]>
  • Loading branch information
matthewgardner and rocketstack-matt authored May 29, 2024
1 parent 4a65c32 commit f0fe8f9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/translator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: maven
- run: mvn -B install --file ./translator/pom.xml
- run: mvn -B install --file ./translator/pom.xml
# - name: Add coverage to PR
# id: jacoco
# uses: madrapps/[email protected]
# with:
# paths: ${{ github.workspace }}/translator/target/site/jacoco/jacoco.xml
# token: ${{ secrets.GITHUB_TOKEN }}
# min-coverage-overall: 80
# min-coverage-changed-files: 80

19 changes: 19 additions & 0 deletions translator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit f0fe8f9

Please sign in to comment.