From c75719d779bc320ea65c342e22c6430b88692179 Mon Sep 17 00:00:00 2001 From: linhpd-axonivy Date: Wed, 24 Jul 2024 16:24:24 +0700 Subject: [PATCH] MAPR-562: update codeQl --- .github/workflows/codeql.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0a7a9e69..16ad296e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -40,6 +40,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -54,24 +56,32 @@ jobs: with: java-version: '17' distribution: 'temurin' + cache: maven - name: Build Spring Boot project if: matrix.language == 'java-kotlin' run: | - cd marketplace-service + cd ./marketplace-service ./mvnw clean install -DskipTests - name: Set up Node.js if: matrix.language == 'javascript-typescript' - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' + cache: 'npm' + cache-dependency-path: ./marketplace-ui/package-lock.json + - name: Install Dependencies + if: matrix.language == 'javascript-typescript' + run: | + cd ./marketplace-ui + npm install + - name: Build Angular project if: matrix.language == 'javascript-typescript' run: | - cd marketplace-ui - npm ci + cd ./marketplace-ui npm run build - name: Perform CodeQL Analysis