Skip to content

Commit

Permalink
SCSCANGHA-15 Add test for scanner debug logging (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
istvan-bodo-sonarsource authored May 22, 2024
1 parent 1373cf7 commit 714bd35
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 714bd35

Please sign in to comment.