Skip to content

ci(qodana): add qodana scans (#5) #3

ci(qodana): add qodana scans (#5)

ci(qodana): add qodana scans (#5) #3

name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- feature/3-add-qodana-code-scanning
jobs:
qodana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-qodana-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}