Skip to content

CodeQL

CodeQL #317

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '20 19 * * 6'
jobs:
analyze:
name: CodeQL
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
if: ${{ matrix.language == 'javascript' }}
- name: Use Node.js 20.x
if: ${{ matrix.language == 'cpp' }}
uses: actions/setup-node@v4
with:
node-version: 20
- name: Build
if: ${{ matrix.language == 'cpp' }}
run: |
corepack enable
yarn install --frozen-lockfile
yarn node-gyp -C native/cli configure --arch=ia32
yarn node-gyp -C native/cli build -j max
yarn node-gyp -C native/addons configure
yarn node-gyp -C native/addons build -j max
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3