我写了什么东西 #4

Merged
XiaoLFeng merged 5 commits from feature into master 2024-01-25 22:31:35 +08:00
2 changed files with 22 additions and 43 deletions
Showing only changes of commit beb44faf39 - Show all commits

View File

@ -1,24 +0,0 @@
name: Qodana测试
on:
workflow_dispatch:
pull_request:
push:
branches:
- feature
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 }}
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.3.1
env:
QODANA_TOKEN: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiJwNTZYRyIsInByb2plY3QiOiIzd1JQNyIsInRva2VuIjoiQWFxVkoifQ.R3TH0E2LgVpBorJ1wyIx3zjIM1p4j-taEEShZKhH2l8

5
Jenkinsfile vendored
View File

@ -8,11 +8,14 @@ pipeline {
-v "${WORKSPACE}":/data/project -v "${WORKSPACE}":/data/project
--entrypoint="" --entrypoint=""
''' '''
image 'jetbrains/qodana-<linter>' image 'jetbrains/qodana-jvm'
} }
} }
stages { stages {
stage('Qodana') { stage('Qodana') {
when {
branch 'feature'
}
steps { steps {
sh '''qodana''' sh '''qodana'''
} }