-
-
Notifications
You must be signed in to change notification settings - Fork 787
77 lines (69 loc) · 1.98 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps:
# - Run Qodana inspections.
#
# The workflow is triggered on push and pull_request events.
#
# GitHub Actions reference: https://help.github.com/en/actions
##
name: Qodana
on:
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests)
push:
branches: [ master, next ]
paths-ignore:
- '.idea/**'
- '.run/**'
- 'gradle/wrapper/**'
- 'resources/**'
- '.gitignore'
- 'gradlew'
- 'gradlew.bat'
- 'README.md'
- 'CHANGELOG.md'
- 'FINANCIAL_CONTRIBUTORS.md'
# Trigger the workflow on any pull request
pull_request:
paths-ignore:
- '.idea/**'
- '.run/**'
- 'gradle/wrapper/**'
- 'resources/**'
- '.gitignore'
- 'gradlew'
- 'gradlew.bat'
- 'README.md'
- 'CHANGELOG.md'
- 'FINANCIAL_CONTRIBUTORS.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# Run Qodana inspections and provide report
inspectCode:
name: Inspect code
runs-on: ubuntu-latest
permissions:
contents: write
checks: write
pull-requests: write
steps:
# Free GitHub Actions Environment Disk Space
- name: Maximize Build Space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
large-packages: false
# Check out the current repository
- name: Fetch Sources
uses: actions/checkout@v4
# Set up Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
# Run Qodana inspections
- name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v2024.1.8
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}