From f6a9581adef87a8915639e6cb2d7c4d02315ebd0 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Thu, 25 Jan 2024 22:30:36 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=96=B0=E5=A2=9E=20Qodana=20=E6=89=AB?= =?UTF-8?q?=E6=8F=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cd209f4d..a655eeff 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,4 +45,21 @@ jobs: script: | cd /docker docker-compose up --force-recreate --build -d continew-admin-server - docker images | grep none | awk '{print $3}' | xargs docker rmi \ No newline at end of file + docker images | grep none | awk '{print $3}' | xargs docker rmi + # Qodana 扫描 + qodana-scan: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + checks: write + steps: + - name: Checkout + uses: actions/checkout@master + 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: Scan + uses: JetBrains/qodana-action@v2023.3 + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} \ No newline at end of file