From 95f06033c253dca8b3e355e010bb11a29f4b2a2d Mon Sep 17 00:00:00 2001 From: BLuBin7 Date: Mon, 10 Mar 2025 01:20:49 +0700 Subject: [PATCH 1/2] fix: codeQL workflow for build Maven --- .github/workflows/codeql.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4ae9aed..1a269e4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -42,7 +42,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK 21 (only for Java) + - name: Set up JDK 21 for Java if: matrix.language == 'java' uses: actions/setup-java@v3 with: @@ -64,17 +64,14 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - - name: Build with Maven (only for Java) - if: matrix.language =='java' - - - name: Autobuild for JavaScript - if: matrix.language == 'javascript' - uses: github/codeql-action/autobuild@v3 - - name: Build Java project with Maven if: matrix.language == 'java' run: mvn clean package + - name: Autobuild for JavaScript + if: matrix.language == 'javascript' + uses: github/codeql-action/autobuild@v3 + # â„šī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun From 8109b0bd3b24d19bba466f75fcd8c1a72b4f95f7 Mon Sep 17 00:00:00 2001 From: BLuBin7 Date: Mon, 10 Mar 2025 01:30:51 +0700 Subject: [PATCH 2/2] build: add Maven Surefire Plugin for unit testing --- identity-service/pom.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/identity-service/pom.xml b/identity-service/pom.xml index 6f82c95..edce5ab 100644 --- a/identity-service/pom.xml +++ b/identity-service/pom.xml @@ -96,6 +96,15 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + 21 + 21 + + org.springframework.boot spring-boot-maven-plugin @@ -108,6 +117,11 @@ + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M9 +