From 0c7e5467c8762650000f46ac406c751c7ee7090b Mon Sep 17 00:00:00 2001 From: LamGC Date: Mon, 9 Nov 2020 21:49:27 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20Project=20=E6=9B=B4=E6=96=B0=20maven?= =?UTF-8?q?-test=20workflow=20=E4=BB=A5=E6=B7=BB=E5=8A=A0=20Codecov=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=A6=86=E7=9B=96=E7=8E=87=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E6=94=B6=E9=9B=86=E5=88=86=E6=9E=90=E5=99=A8;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Update] maven-test.yml 添加 Codecov step; --- .github/workflows/maven-test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml index 708dd1a..9d5f2ca 100644 --- a/.github/workflows/maven-test.yml +++ b/.github/workflows/maven-test.yml @@ -27,3 +27,13 @@ jobs: redis-version: latest - name: Build with Maven run: mvn -B test --file pom.xml + + - name: Upload Coverage Report to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: .*?/target/jacoco.exec$ + flags: Unit tests + name: Jacoco-Converage-Report + fail_ci_if_error: true + verbose: true