From 746d69f80b5602c3584f532a65f5071686e72eff Mon Sep 17 00:00:00 2001 From: Daoortor Date: Sat, 20 Jul 2024 21:01:21 +0200 Subject: [PATCH] fixes --- .../workflows/gradle-build-with-detekt.yml | 3 +-- .github/workflows/qodana.yml | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/qodana.yml diff --git a/.github/workflows/gradle-build-with-detekt.yml b/.github/workflows/gradle-build-with-detekt.yml index cbe7610..4f8bef8 100644 --- a/.github/workflows/gradle-build-with-detekt.yml +++ b/.github/workflows/gradle-build-with-detekt.yml @@ -1,6 +1,6 @@ name: Gradle Build With Detekt -on: [push, pull_request] +on: [workflow_dispatch] jobs: build: @@ -18,4 +18,3 @@ jobs: - uses: gradle/gradle-build-action@v2.1.5 with: arguments: build --stacktrace -PrunDetekt - \ No newline at end of file diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml new file mode 100644 index 0000000..4023456 --- /dev/null +++ b/.github/workflows/qodana.yml @@ -0,0 +1,27 @@ +#file: noinspection YAMLSchemaValidation +name: Qodana +on: + workflow_dispatch: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + 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@v2024.1 + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} \ No newline at end of file