Skip to content

Commit

Permalink
Adding static analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsommardahl committed Apr 18, 2024
1 parent da6b3d6 commit 2c74551
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,39 @@ jobs:
run: cd frontend && npm i

- name: Run the unit tests
run: cd frontend && npm run test-ci
run: cd frontend && npm run test-ci

static-analysis:
name: 🔬 Run Static Code Analysis
needs: [build]
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: ./.github/codeql/codeql.config.yml

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Cache Node Modules
id: cache
uses: actions/cache@v3
with:
path: frontend/node_modules
key: fe-node-${{ hashFiles('frontend/package-lock.json') }}

- name: Install Deps
run: cd frontend && npm i

- name: Build
run: cd frontend && npm run build

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

0 comments on commit 2c74551

Please sign in to comment.