From 8bd30f32699a11b948c3eb6f8d76f31f45341cc0 Mon Sep 17 00:00:00 2001 From: Haotian Zhang <928016560@qq.com> Date: Thu, 3 Nov 2022 11:48:55 +0800 Subject: [PATCH] docs:update PR template. (#692) --- .github/PULL_REQUEST_TEMPLATE.md | 12 +++++++---- .github/workflows/codecov.yml | 34 ++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b8926662..7d9d0022 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -13,16 +13,20 @@ Other... Please describe: ## Adding the issue link (#xxx) if possible. + + ## Note ## Checklist -- [ ] Add copyright holder at the beginning of .class file if it is new. -- [ ] Add information of this PR to CHANGELOG.md in root of project. +- [ ] Coverage from `Codecov Report` should not decrease (which means adding junit tests for adding or updating code). - [ ] All junit tests passing. -- [ ] Coverage from `Codecov Report` should not decrease. +- [ ] 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. ## Checklist (Optional) - [ ] Will Pull Request to branch of 2020.0 and hoxton. -- [ ] Add documentation in javadoc in code or comment below the PR if necessary. +- [ ] Add documentation in javadoc or comment below the PR if necessary. diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 00000000..721286f3 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,34 @@ +name: Codecov + +on: + push: + branches: + - hoxton + - 2021.0 + - 2020.0 + - greenwich + pull_request: + branches: + - hoxton + - 2021.0 + - 2020.0 + - greenwich + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout codes + uses: actions/checkout@v3 + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 8 + - name: Test with Maven + run: mvn -B test --file pom.xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + file: ${{ github.workspace }}/target/site/jacoco/jacoco.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 715b9f1a..4b71b729 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,3 +4,4 @@ - [Optimize:optimize spring value processor](https://github.com/Tencent/spring-cloud-tencent/pull/669) - [Optimize: Register the service with the ProviderAPI#registerInstance method.](https://github.com/Tencent/spring-cloud-tencent/pull/687) - [Optimize:optimize spring annotation.](https://github.com/Tencent/spring-cloud-tencent/pull/689) +- [docs:update PR template.](https://github.com/Tencent/spring-cloud-tencent/pull/692)