From 21d7173ec3c97b184cb98577b1b8e7cdb0fd37dd Mon Sep 17 00:00:00 2001 From: Saimir Gasa Date: Fri, 21 Jul 2023 17:01:21 +0200 Subject: [PATCH] Add Qodana configuration --- .github/workflows/maven-build.yml | 37 +++++++++++++++++++++++++++++++ qodana.yml | 4 ++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/maven-build.yml create mode 100644 qodana.yml diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml new file mode 100644 index 000000000..6aa69f2d1 --- /dev/null +++ b/.github/workflows/maven-build.yml @@ -0,0 +1,37 @@ +name: Java CI with Maven + +on: + push: + branches: [ main ] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '17' ] + steps: + - uses: actions/checkout@v3 + - name: Set up JDK ${{matrix.java}} + uses: actions/setup-java@v3 + with: + java-version: ${{matrix.java}} + distribution: 'adopt' + cache: maven + - name: Build with Maven Wrapper + run: ./mvnw -B package + + qodana: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + checks: write + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit + fetch-depth: 0 # a full history is required for pull request analysis + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2023.2 + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below diff --git a/qodana.yml b/qodana.yml new file mode 100644 index 000000000..f8db9e8d9 --- /dev/null +++ b/qodana.yml @@ -0,0 +1,4 @@ +version: 1.0 +linter: jetbrains/qodana-jvm:latest +profile: + name: qodana.recommended