ci: 新增 Qodana 扫描
This commit is contained in:
parent
acee7bfb6b
commit
f6a9581ade
19
.github/workflows/deploy.yml
vendored
19
.github/workflows/deploy.yml
vendored
@ -45,4 +45,21 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
cd /docker
|
cd /docker
|
||||||
docker-compose up --force-recreate --build -d continew-admin-server
|
docker-compose up --force-recreate --build -d continew-admin-server
|
||||||
docker images | grep none | awk '{print $3}' | xargs docker rmi
|
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 }}
|
Loading…
Reference in New Issue
Block a user