Skip to content

Commit

Permalink
Add codecov git action to track test coverage metrics (#1945)
Browse files Browse the repository at this point in the history
* 提交测试覆盖率

* Update pom.xml

update

* Update pom.xml

* Update pom.xml
  • Loading branch information
husofskyzy authored Apr 12, 2022
1 parent 55bc73a commit e7e144c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
run: |
./mvnw -N install
./mvnw clean package
- name: Upload coverage to Codecov
uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
- name: Build frontend by node.js
run: |
cd web
Expand Down
22 changes: 21 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,27 @@


<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</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>
<pluginManagement>
<plugins>
<plugin>
Expand Down Expand Up @@ -701,7 +722,6 @@
<forkCount>3</forkCount>
</configuration>
</plugin>

</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit e7e144c

Please sign in to comment.