From 3a5ac208f94b7af40e45777cd748025885b0b145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petrus=20Nguy=E1=BB=85n=20Th=C3=A1i=20H=E1=BB=8Dc?= Date: Thu, 11 Nov 2021 19:29:36 +0700 Subject: [PATCH] Qodana --- .github/workflows/qodana.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/qodana.yml diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml new file mode 100644 index 00000000..5d802526 --- /dev/null +++ b/.github/workflows/qodana.yml @@ -0,0 +1,32 @@ +name: Qodana + +on: + push: + branches: [ master ] + paths-ignore: [ '**.md', '**.MD' ] + pull_request: + branches: [ master ] + paths-ignore: [ '**.md', '**.MD' ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Cache Qodana dependencies + uses: actions/cache@v2 + with: + path: ~/work/_temp/_github_home/qodana-cache + key: ${{ runner.os }}-qodana-${{ github.ref }} + restore-keys: | + ${{ runner.os }}-qodana-${{ github.ref }} + ${{ runner.os }}-qodana- + - uses: JetBrains/qodana-action@v3.2.1 + with: + linter: qodana-jvm-community + fail-threshold: 10 + + - uses: actions/upload-artifact@v2 + with: + path: ${{ github.workspace }}/qodana