Skip to content

Commit bf51a7e

Browse files
piotrzajacPiotr Zajac
and
Piotr Zajac
authored
Fail on publishing report to Qodana cloud (#256)
* Allow specifying log-level with workflow_dispatch * Revert to jetbrains/qodana-cdnet:2024.3-eap docker image to enable uploading reports --------- Co-authored-by: Piotr Zajac <[email protected]>
1 parent 59342ae commit bf51a7e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/qodana.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ on:
2121
required: false
2222
type: boolean
2323
default: false
24+
log-level:
25+
description: 'Log level for Qodana scan'
26+
required: false
27+
type: choice
28+
default: 'error'
29+
options:
30+
- 'debug'
31+
- 'error'
32+
- 'trace'
2433

2534
concurrency:
2635
group: ${{ github.workflow }}-${{ github.ref }}
@@ -59,10 +68,11 @@ jobs:
5968
cache-dir: ${{ runner.temp }}/qodana/caches
6069
primary-cache-key: ${{ runner.os }}-qodana-${{ github.ref }}-${{ hashFiles('**/*.csproj') }}
6170
additional-cache-key: ${{ runner.os }}-qodana-${{ github.ref }}
62-
upload-result: ${{github.event_name == 'workflow_dispatch' && inputs.upload-result-as-artifact == true}}
71+
upload-result: ${{ github.event_name == 'workflow_dispatch' && inputs.upload-result-as-artifact == true }}
6372
github-token: ${{ github.token }}
6473
args: |
6574
--project-dir,src,
75+
--log-level,${{ github.event_name == 'workflow_dispatch' && inputs.log-level || 'error' }},
6676
--save-report=false
6777
env:
6878
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

src/qodana.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "1.0"
22
profile:
33
name: qodana.recommended
4-
linter: jetbrains/qodana-cdnet:2025.1-eap
4+
linter: jetbrains/qodana-cdnet:2024.3-eap
55
dotnet:
66
solution: Objectivity.AutoFixture.XUnit2.AutoMock.sln
77
configuration: Release

0 commit comments

Comments
 (0)