You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/04/12 11:32:21 UTC
[incubator-linkis] branch master updated: Add codecov git action to track test coverage metrics (#1945)
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/master by this push:
new e7e144cc0 Add codecov git action to track test coverage metrics (#1945)
e7e144cc0 is described below
commit e7e144cc0042a31514ceec699e88055d85fa3372
Author: husofskyzy <15...@163.com>
AuthorDate: Tue Apr 12 19:32:17 2022 +0800
Add codecov git action to track test coverage metrics (#1945)
* 提交测试覆盖率
* Update pom.xml
update
* Update pom.xml
* Update pom.xml
---
.github/workflows/build.yml | 4 ++++
pom.xml | 22 +++++++++++++++++++++-
2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cc6a72db3..1ffc99b01 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -54,6 +54,10 @@ jobs:
run: |
./mvnw -N install
./mvnw clean package
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v3.0.0
+# with:
+# token: ${{ secrets.CODECOV_TOKEN }}
- name: Build frontend by node.js
run: |
cd web
diff --git a/pom.xml b/pom.xml
index 960f6b268..5b1b091b4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>
@@ -701,7 +722,6 @@
<forkCount>3</forkCount>
</configuration>
</plugin>
-
</plugins>
</pluginManagement>
</build>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org