From 42c8981656a6b4bf88fc058d15339195f4dab2ce Mon Sep 17 00:00:00 2001 From: Joonhang35 Date: Wed, 4 Sep 2024 22:59:49 +0800 Subject: [PATCH] changes ci.yml --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 896b3ea63..c865e0038 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,10 +19,13 @@ jobs: with: distribution: 'adopt' java-version: '17' + + - name: Install Dependencies + run: mvn dependency:resolve - name: Build with Maven run: mvn clean install - + - name: Upload Build Artifacts uses: actions/upload-artifact@v4 with: @@ -32,15 +35,15 @@ jobs: - name: Run Unit Tests run: mvn test + - name: Run Unit Tests and Generate Coverage + run: mvn test jacoco:report + - name: Upload Test Reports uses: actions/upload-artifact@v4 with: name: test-reports path: target/surefire-reports/** - - name: Generate Code Coverage Report - run: mvn jacoco:report - - name: Upload Code Coverage Report uses: actions/upload-artifact@v4 with: