From 49d3b60bc85f63dcdfc5c3151a7fbed348a26c34 Mon Sep 17 00:00:00 2001 From: Niels Bertram Date: Fri, 20 Oct 2023 00:27:41 +1000 Subject: [PATCH] add qoanda code quality check --- .../{maven-release.yaml => maven-release.yml} | 7 ++++--- .github/workflows/qodana.yml | 21 +++++++++++++++++++ qodana.yml | 9 ++++++++ 3 files changed, 34 insertions(+), 3 deletions(-) rename .github/workflows/{maven-release.yaml => maven-release.yml} (94%) create mode 100644 .github/workflows/qodana.yml create mode 100644 qodana.yml diff --git a/.github/workflows/maven-release.yaml b/.github/workflows/maven-release.yml similarity index 94% rename from .github/workflows/maven-release.yaml rename to .github/workflows/maven-release.yml index d47d965..c06c4a4 100644 --- a/.github/workflows/maven-release.yaml +++ b/.github/workflows/maven-release.yml @@ -1,8 +1,9 @@ --- -name: Publish package to the Maven Central Repository +name: Build and publish to the Maven Central Repository on: release: - types: [ created ] + types: + - created push: branches: - main @@ -10,7 +11,7 @@ on: - releases/** jobs: - publish: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml new file mode 100644 index 0000000..9255aec --- /dev/null +++ b/.github/workflows/qodana.yml @@ -0,0 +1,21 @@ +--- +name: Analyse code quality +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + - develop + +jobs: + qodana: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2023.2 + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} diff --git a/qodana.yml b/qodana.yml new file mode 100644 index 0000000..8b73db4 --- /dev/null +++ b/qodana.yml @@ -0,0 +1,9 @@ +--- +version: "1.0" + +profile: + name: qodana.recommended + +projectJDK: corretto-17 + +linter: jetbrains/qodana-jvm:latest