docs:Add code coverage blocking. (#837)

pull/841/head
Haotian Zhang 2 years ago committed by GitHub
parent 3dbc3afd3b
commit c46b67f2c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,12 +21,11 @@ fixes #
## Checklist ## Checklist
- [ ] Coverage from `Codecov Report` should not decrease (which means adding junit tests for adding or updating code).
- [ ] All junit tests passing.
- [ ] Add copyright holder at the beginning of .java file if it is new. - [ ] Add copyright holder at the beginning of .java file if it is new.
- [ ] Add information of this PR to CHANGELOG.md in root of project. - [ ] Add information of this PR to CHANGELOG.md in root of project.
- [ ] Add documentation in javadoc or comment below the PR if necessary.
## Checklist (Optional) ## Checklist (Optional)
- [ ] Will Pull Request to branch of 2022.0 and 2020.0. - [ ] Will pull request to branch of 2020.0.
- [ ] Add documentation in javadoc or comment below the PR if necessary. - [ ] Will pull request to branch of 2022.0.

@ -31,4 +31,5 @@ jobs:
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
with: with:
file: ${{ github.workspace }}/target/site/jacoco/jacoco.xml token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ github.workspace }}/target/site/jacoco/jacoco.xml

@ -1,3 +1,4 @@
# Change Log # Change Log
--- ---
- [docs:Add code coverage blocking.](https://github.com/Tencent/spring-cloud-tencent/pull/837)

@ -91,12 +91,15 @@
<!-- Project revision --> <!-- Project revision -->
<revision>1.10.0-2020.0.5-SNAPSHOT</revision> <revision>1.10.0-2020.0.5-SNAPSHOT</revision>
<!-- Spring Cloud -->
<spring.cloud.version>2020.0.5</spring.cloud.version>
<!-- Spring Framework --> <!-- Spring Framework -->
<spring.framework.version>5.3.21</spring.framework.version> <spring.framework.version>5.3.21</spring.framework.version>
<!-- Spring Boot -->
<spring.boot.version>2.4.13</spring.boot.version>
<!-- Spring Cloud -->
<spring.cloud.version>2020.0.5</spring.cloud.version>
<!-- Maven Plugin Versions --> <!-- Maven Plugin Versions -->
<jacoco.version>0.8.8</jacoco.version> <jacoco.version>0.8.8</jacoco.version>
<maven-source-plugin.version>3.2.0</maven-source-plugin.version> <maven-source-plugin.version>3.2.0</maven-source-plugin.version>
@ -121,20 +124,29 @@
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
<!-- Spring Cloud Dependencies --> <!-- Spring Framework Dependencies -->
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-cloud-dependencies</artifactId> <artifactId>spring-framework-bom</artifactId>
<version>${spring.cloud.version}</version> <version>${spring.framework.version}</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
<!-- Spring Framework Dependencies --> <!-- Spring Boot Dependencies -->
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-framework-bom</artifactId> <artifactId>spring-boot-dependencies</artifactId>
<version>${spring.framework.version}</version> <version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Spring Cloud Dependencies -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring.cloud.version}</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>

Loading…
Cancel
Save