Skip to content

Commit 5df137f

Browse files
ci: Add qodana analysis
1 parent a935586 commit 5df137f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/qodana-analysis.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ jobs:
1414
- uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
17-
- name: Set up Maven
18-
uses: stCarolas/setup-maven@v5
17+
- name: Set up JDK 8
18+
uses: actions/setup-java@v3
19+
id: sj
1920
with:
20-
maven-version: 3.8.2
21+
java-version: 8
22+
distribution: zulu
23+
cache: maven
2124
- uses: PeyaPeyaPeyang/nmsaction@v3
2225
if: "steps.sj.outputs.cache-hit != 'true'"
2326
with:
@@ -27,7 +30,13 @@ jobs:
2730
run: |
2831
mkdir -p $HOME/.m2/repository
2932
cp -a nms-build/.m2/repository/. $HOME/.m2/repository
33+
- name: Retrieve the absolute path of .m2
34+
id: m2-path
35+
run: |
36+
echo "m2-path=$(echo $HOME/.m2/repository)" >> $GITHUB_OUTPUT
3037
- name: 'Qodana Scan'
3138
uses: JetBrains/qodana-action@main
39+
with:
40+
args: --volume,/root/.m2/repository:${{ steps.m2-path.outputs.m2-path }}
3241
env:
3342
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

0 commit comments

Comments
 (0)