Skip to content

ci: Add qodana analysis #19

ci: Add qodana analysis

ci: Add qodana analysis #19

name: Qodana analysis
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- develop
jobs:
qodana:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v3
id: sj
with:
java-version: 8
distribution: zulu
cache: maven
- uses: PeyaPeyaPeyang/nmsaction@v3
if: "steps.sj.outputs.cache-hit != 'true'"
with:
rev: 1.16.5
- name: Install nms into m2
if: "steps.sj.outputs.cache-hit != 'true'"
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: |
chmod -R 777 $HOME/.m2
echo "m2-path=$(echo $HOME/.m2)" >> $GITHUB_ENV
- 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 }}