mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-16 10:58:28 +00:00
SQSCANGHA-92 Fixing tests round 2
This commit is contained in:
parent
3fcca80d1e
commit
ef9936db81
1 changed files with 2 additions and 6 deletions
8
.github/workflows/qa-main.yml
vendored
8
.github/workflows/qa-main.yml
vendored
|
|
@ -21,11 +21,9 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SONAR_HOST_URL: http://not_actually_used
|
SONAR_HOST_URL: http://not_actually_used
|
||||||
SONAR_SCANNER_JSON_PARAMS: '{"sonar.scanner.internal.dumpToFile": "./output.properties"}'
|
SONAR_SCANNER_JSON_PARAMS: '{"sonar.scanner.internal.dumpToFile": "./output.properties"}'
|
||||||
- name: Assert failure of previous step
|
- name: Assert
|
||||||
if: steps.invalid_version.outcome == 'success'
|
|
||||||
run: |
|
run: |
|
||||||
echo "Action with invalid scannerVersion should have failed but succeeded"
|
./test/assertFileContains ./output.properties "sonar.projectBaseDir=."
|
||||||
exit 1
|
|
||||||
argsInputTest:
|
argsInputTest:
|
||||||
name: >
|
name: >
|
||||||
'args' input
|
'args' input
|
||||||
|
|
@ -41,7 +39,6 @@ jobs:
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
args: -Dsonar.someArg=aValue -Dsonar.anotherArgWithSpaces="Another Value"
|
args: -Dsonar.someArg=aValue -Dsonar.anotherArgWithSpaces="Another Value"
|
||||||
scannerVersion: 6.1.0.4477
|
|
||||||
env:
|
env:
|
||||||
SONAR_HOST_URL: http://not_actually_used
|
SONAR_HOST_URL: http://not_actually_used
|
||||||
SONAR_SCANNER_JSON_PARAMS: '{"sonar.scanner.internal.dumpToFile": "./output.properties"}'
|
SONAR_SCANNER_JSON_PARAMS: '{"sonar.scanner.internal.dumpToFile": "./output.properties"}'
|
||||||
|
|
@ -90,7 +87,6 @@ jobs:
|
||||||
- name: Run action with projectBaseDir
|
- name: Run action with projectBaseDir
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
scannerVersion: 6.1.0.4477
|
|
||||||
args: -Dsonar.scanner.internal.dumpToFile=./output.properties
|
args: -Dsonar.scanner.internal.dumpToFile=./output.properties
|
||||||
projectBaseDir: ./baseDir
|
projectBaseDir: ./baseDir
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue