From f6f17ab3f452e3bbc92c3e747b54c40e0e93f14d Mon Sep 17 00:00:00 2001 From: anton Date: Fri, 1 Sep 2023 17:20:13 +0300 Subject: [PATCH] New pipeline --- .github/workflows/maven-build.yml | 33 +++++++++++++++++++++++++++---- qodana.yaml | 31 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 qodana.yaml diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 5de223fc6..8d9cad648 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -10,13 +10,38 @@ on: branches: [ main ] jobs: - build: - + verify: 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 verify + qodana: + runs-on: ubuntu-latest + needs: verify + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2023.2 +# env: +# QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} + build: + runs-on: ubuntu-latest + needs: qodana + strategy: + matrix: + java: [ '17' ] steps: - uses: actions/checkout@v3 - name: Set up JDK ${{matrix.java}} @@ -26,4 +51,4 @@ jobs: distribution: 'adopt' cache: maven - name: Build with Maven Wrapper - run: ./mvnw -B package + run: ./mvnw -B verify diff --git a/qodana.yaml b/qodana.yaml new file mode 100644 index 000000000..80ee5ca68 --- /dev/null +++ b/qodana.yaml @@ -0,0 +1,31 @@ +#-------------------------------------------------------------------------------# +# Qodana analysis is configured by qodana.yaml file # +# https://www.jetbrains.com/help/qodana/qodana-yaml.html # +#-------------------------------------------------------------------------------# +version: "1.0" + +#Specify inspection profile for code analysis +profile: + name: qodana.recommended + +#Enable inspections +include: + - name: All + +#Disable inspections +#exclude: +# - name: +# paths: +# - + +projectJDK: jbr-21 #(Applied in CI/CD pipeline) + +#Execute shell command before Qodana execution (Applied in CI/CD pipeline) +#bootstrap: sh ./prepare-qodana.sh + +#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline) +#plugins: +# - id: #(plugin id can be found at https://plugins.jetbrains.com) + +#Specify Qodana linter for analysis (Applied in CI/CD pipeline) +linter: jetbrains/qodana-jvm:latest