mirror of
https://github.com/sonarsource/sonarcloud-github-action.git
synced 2026-06-08 19:47:10 +00:00
This reverts commit d08d592c0b.
This commit is contained in:
parent
13d84ab51e
commit
e44258b109
2 changed files with 3 additions and 6 deletions
5
.github/workflows/qa.yml
vendored
5
.github/workflows/qa.yml
vendored
|
|
@ -19,13 +19,12 @@ jobs:
|
||||||
- name: Run action with args
|
- name: Run action with args
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
args: >-
|
args: -Dsonar.someArg=aValue -Dsonar.scanner.dumpToFile=./output.properties
|
||||||
"-Dsonar.someArg=a value with spaces" -Dsonar.scanner.dumpToFile=./output.properties
|
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: FAKE_TOKEN
|
SONAR_TOKEN: FAKE_TOKEN
|
||||||
- name: Assert
|
- name: Assert
|
||||||
run: |
|
run: |
|
||||||
./test/assertFileContains ./output.properties "sonar.someArg=a value with spaces"
|
./test/assertFileContains ./output.properties "sonar.someArg=aValue"
|
||||||
projectBaseDirInputTest:
|
projectBaseDirInputTest:
|
||||||
name: >
|
name: >
|
||||||
'projectBaseDir' input
|
'projectBaseDir' input
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,4 @@ if [[ "$RUNNER_DEBUG" == '1' ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset JAVA_HOME
|
unset JAVA_HOME
|
||||||
|
sonar-scanner $debug_flag -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}
|
||||||
eval "args=(${INPUT_ARGS})"
|
|
||||||
sonar-scanner $debug_flag "-Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR}" "-Dsonar.host.url=${SONARCLOUD_URL}" "${args[@]}"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue