-
Notifications
You must be signed in to change notification settings - Fork 107
37 lines (35 loc) · 1.11 KB
/
qodana.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
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- develop
- feature/qodana
jobs:
gatekeeper:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'translations_') == false || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- run: echo 'Open the Golden Gate'
qodana:
needs: gatekeeper
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
linter: jetbrains/qodana-jvm-community
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
- name: Deploy to GitHub Pages
if: github.event_name == 'push'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ runner.temp }}/qodana/results/report
destination_dir: ./qodana