-
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.48 KB
/
analysis.yaml
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
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: Validate Maven Wrapper
run: mvn --version
- name: Run Tests
run: |
LD_LIBRARY_PATH=Extensions mvn test \
-DAR_HARDWARE_DRIVER=native \
-DAR_HARDWARE_MEMORY_SCALE=7 \
-DAR_HARDWARE_LIBS=Extensions \
-DAR_TEST_PROFILE=pipeline
- name: Archive coverage data
uses: actions/upload-artifact@v4
with:
name: maven-coverage-data
path: .qodana/code-coverage
- name: Qodana Scan
uses: JetBrains/qodana-action@main
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
args: "-i,.,--linter,jetbrains/qodana-jvm"
pr-mode: false
- name: Github Scan
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json