Skip to content

Commit b67bd75

Browse files
committed
try to build an app to scan the template
1 parent ca996b4 commit b67bd75

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/codeql.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ jobs:
4444
- name: Checkout repository
4545
uses: actions/checkout@v3
4646

47+
- name: Use Node.js v18.x
48+
if: matrix.language == 'cpp'
49+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
50+
with:
51+
node-version: 18.x
52+
53+
- name: Use Node.js v18.x
54+
if: matrix.language == 'cpp'
55+
run: |
56+
npm ci
57+
npm run build
58+
4759
# Initializes the CodeQL tools for scanning.
4860
- name: Initialize CodeQL
4961
uses: github/codeql-action/init@v2
@@ -64,17 +76,10 @@ jobs:
6476
- '**/*.test.tsx'
6577
- '**/*.spec.tsx'
6678
67-
- name: Use Node.js v18.x
68-
if: matrix.language == 'cpp'
69-
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
70-
with:
71-
node-version: 18.x
72-
7379
- name: Build cpp
7480
if: matrix.language == 'cpp'
7581
run: |
76-
npx node-gyp rebuild
77-
82+
node bin/boxednode.js -s test/resources/example.js -t example
7883
7984
- name: Perform CodeQL Analysis
8085
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)