From b67bd750bbbaa715238ea657dbb02bf20d3de762 Mon Sep 17 00:00:00 2001 From: Maurizio Casimirri Date: Wed, 13 Dec 2023 17:25:53 +0100 Subject: [PATCH] try to build an app to scan the template --- .github/workflows/codeql.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a941bf0..952c60c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -44,6 +44,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Use Node.js v18.x + if: matrix.language == 'cpp' + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + with: + node-version: 18.x + + - name: Use Node.js v18.x + if: matrix.language == 'cpp' + run: | + npm ci + npm run build + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 @@ -64,17 +76,10 @@ jobs: - '**/*.test.tsx' - '**/*.spec.tsx' - - name: Use Node.js v18.x - if: matrix.language == 'cpp' - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 - with: - node-version: 18.x - - name: Build cpp if: matrix.language == 'cpp' run: | - npx node-gyp rebuild - + node bin/boxednode.js -s test/resources/example.js -t example - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2