-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) Β· 1.11 KB
/
code_quality.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
# Install pnpm
- name: Install pnpm
run: |
curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
# Cache pnpm modules
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
# Install dependencies with pnpm
- name: Install dependencies
run: pnpm install
# Run Qodana Scan
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1
with:
config: ../../qodana.yaml # Use the configuration file
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}