Skip to content

Update node-ci.yml to include CodeQL Analysis #899

Update node-ci.yml to include CodeQL Analysis

Update node-ci.yml to include CodeQL Analysis #899

Workflow file for this run

name: Node.js CI
on:
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
if: ${{ github.actor != 'dependabot'}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm install
- run: npm run test:unit:ci
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
strategy:
matrix:
node-version:
- 18
- 20