53 lines (51 loc) · 1.79 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
name: Qodana
on: [ push, pull_request ]
env:
ORG_GRADLE_PROJECT_checksumFailOn: build_finish
ORG_GRADLE_PROJECT_checksumIgnore: false
ORG_GRADLE_PROJECT_checksumPrint: true
JAVA_VERSION: 11
jobs:
qodana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
- name: Cache Gradle packages
uses: actions/cache@v2.1.6
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
~/.sonar/cache
key: ${{ runner.os }}-${{ github.job }}-${{ env.JAVA_VERSION }}-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build
run: ./gradlew build -x test
- name: Cache Qodana dependencies
uses: actions/cache@v2.1.6
with:
path: |
~/work/_temp/_github_home/qodana-cache
key: ${{ runner.os }}-qodana-${{ env.JAVA_VERSION }}-${{ github.ref }}
restore-keys: |
${{ runner.os }}-qodana-${{ github.ref }}
${{ runner.os }}-qodana-
- name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v2.1-eap
- uses: actions/upload-artifact@v2
with:
name: qodana-${{ env.JAVA_VERSION }}
path: ${{ github.workspace }}/qodana
- name: View Instructions
run: |
echo "Download and extract the report artifact"
echo "Start an http server"
echo "... python2 -m SimpleHTTPServer"
echo "... python3 -m http.server"
echo "The report is available at http://localhost:8000"
echo "For more details see https://www.jetbrains.com/help/qodana"