Skip to content

Commit

Permalink
create codeQL action
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ebp committed Feb 20, 2024
1 parent 3ff9624 commit b9f10ef
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,22 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: setup node.je
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci
- run: npm run build
- run: npm run test
- run: npm run lint
- name: Install packages
run: npm ci

- name: Build
run: npm run build

- name: Run unit-tests
run: npm run test

- name: Analyze code with lint
run: npm run lint


38 changes: 38 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "CodeQL"

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: '35 4 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit b9f10ef

Please sign in to comment.