Skip to content

Commit ca996b4

Browse files
committed
Add or update CodeQL workflow
1 parent 3dd3576 commit ca996b4

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/codeql.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37-
language: [ 'cpp','javascript' ]
37+
language: [ 'cpp', 'javascript' ]
3838
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
3939
# Use only 'java' to analyze code written in Java, Kotlin or both
4040
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
@@ -64,20 +64,17 @@ jobs:
6464
- '**/*.test.tsx'
6565
- '**/*.spec.tsx'
6666
67-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
68-
# If this step fails, then you should remove it and run the build manually (see below)
69-
- name: Autobuild
70-
uses: github/codeql-action/autobuild@v2
71-
72-
# ℹ️ Command-line programs to run using the OS shell.
73-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
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
7472

75-
# If the Autobuild fails above, remove it and uncomment the following three lines.
76-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
73+
- name: Build cpp
74+
if: matrix.language == 'cpp'
75+
run: |
76+
npx node-gyp rebuild
7777
78-
# - run: |
79-
# echo "Run, Build Application using script"
80-
# ./location_of_script_within_repo/buildscript.sh
8178
8279
- name: Perform CodeQL Analysis
8380
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)