mirror of
https://github.com/sonarsource/sonarcloud-github-action.git
synced 2026-06-06 03:17:07 +00:00
SCSCANGHA-15 Add test for scanner debug logging (#77)
This commit is contained in:
parent
1373cf75e2
commit
714bd356bf
1 changed files with 18 additions and 0 deletions
18
.github/workflows/qa.yml
vendored
18
.github/workflows/qa.yml
vendored
|
|
@ -126,3 +126,21 @@ jobs:
|
|||
run: |
|
||||
echo "Expected previous step to fail"
|
||||
exit 1
|
||||
runnerDebugUsedTest:
|
||||
name: >
|
||||
'RUNNER_DEBUG' is used
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Run action with debug mode
|
||||
uses: ./
|
||||
with:
|
||||
args: -Dsonar.scanner.dumpToFile=./output.properties
|
||||
env:
|
||||
RUNNER_DEBUG: 1
|
||||
SONAR_TOKEN: FAKE_TOKEN
|
||||
- name: Assert
|
||||
run: |
|
||||
./test/assertFileContains ./output.properties "sonar.verbose=true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue