From e43792f7208c62b1962b68e1150ce5407ef3ad6d Mon Sep 17 00:00:00 2001 From: Thanatat Tamtan Date: Fri, 9 Jun 2023 17:27:20 +0700 Subject: [PATCH 1/2] ci: setup qodana --- .github/workflows/qodana.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/qodana.yaml diff --git a/.github/workflows/qodana.yaml b/.github/workflows/qodana.yaml new file mode 100644 index 0000000..3cb3ba7 --- /dev/null +++ b/.github/workflows/qodana.yaml @@ -0,0 +1,12 @@ +name: Test +on: + push: + pull_request: +jobs: + runner-job: + runs-on: ubuntu-latest + name: Qodana Scan + steps: + - uses: JetBrains/qodana-action@v2023.1.0 + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From 9fb1b1cbe0ff8d30080ca0b9e580968434e484de Mon Sep 17 00:00:00 2001 From: Thanatat Tamtan Date: Fri, 9 Jun 2023 17:32:05 +0700 Subject: [PATCH 2/2] update workflow --- .github/workflows/qodana.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qodana.yaml b/.github/workflows/qodana.yaml index 3cb3ba7..12521da 100644 --- a/.github/workflows/qodana.yaml +++ b/.github/workflows/qodana.yaml @@ -1,12 +1,16 @@ -name: Test +name: Qodana on: push: pull_request: jobs: - runner-job: + qodana: runs-on: ubuntu-latest + timeout-minutes: 15 name: Qodana Scan steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 - uses: JetBrains/qodana-action@v2023.1.0 env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}