From 54acaeeb1e6dd397864eafe00bcd02745aaa57f2 Mon Sep 17 00:00:00 2001 From: shihuili1218 Date: Fri, 17 May 2024 19:03:02 +0800 Subject: [PATCH] unit test --- .github/workflows/codecov.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 2f69979..2709bd2 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -13,12 +13,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@main - - uses: codecov/codecov-action@v4 + - name: Checkout + uses: actions/checkout@v4 + - name: Set up JDK 18 + uses: actions/setup-java@v1 with: - fail_ci_if_error: true # optional (default = false) - files: ./coverage1.xml,./coverage2.xml # optional - flags: unittests # optional - name: codecov-umbrella # optional - token: ${{ secrets.CODECOV_TOKEN }} # required - verbose: true # optional (default = false) + java-version: 18 + - name: Install dependencies + run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - name: Run tests and collect coverage + run: mvn -B test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} \ No newline at end of file