SCSCANGHA-15 Add test for scanner debug logging (#77)

This commit is contained in:
Istvan Bodo 2024-05-22 09:56:47 +02:00 committed by GitHub
commit 714bd356bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"