Skip to content

Commit

Permalink
ci: Add qodana analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyaPeyaPeyang committed Mar 14, 2024
1 parent a935586 commit 3f7b684
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/qodana-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Maven
uses: stCarolas/setup-maven@v5
- name: Set up JDK 8
uses: actions/setup-java@v3
id: sj
with:
maven-version: 3.8.2
java-version: 8
distribution: zulu
cache: maven
- uses: PeyaPeyaPeyang/nmsaction@v3
if: "steps.sj.outputs.cache-hit != 'true'"
with:
Expand All @@ -27,7 +30,15 @@ jobs:
run: |
mkdir -p $HOME/.m2/repository
cp -a nms-build/.m2/repository/. $HOME/.m2/repository
- name: Retrieve the absolute path of .m2
id: m2-path
run: |
M2_PATH=$HOME/.m2/repository
echo "m2-path=$M2_PATH" >> $GITHUB_ENV
chmod -R 777 $M2_PATH
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@main
with:
args: --volume,${{ steps.m2-path.outputs.m2-path }}:/root/.m2/repository
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

0 comments on commit 3f7b684

Please sign in to comment.