SQSCANGHA-31 Stop making SONAR_HOST_URL mandatory
This commit is contained in:
17
.github/workflows/qa.yml
vendored
17
.github/workflows/qa.yml
vendored
@@ -45,23 +45,6 @@ jobs:
|
|||||||
- name: Assert
|
- name: Assert
|
||||||
run: |
|
run: |
|
||||||
./test/assertFileContains ./output.properties "sonar.projectBaseDir=.*/baseDir"
|
./test/assertFileContains ./output.properties "sonar.projectBaseDir=.*/baseDir"
|
||||||
sonarHostUrlRequiredTest:
|
|
||||||
name: >
|
|
||||||
'SONAR_HOST_URL' is required
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Run action without SONAR_HOST_URL
|
|
||||||
id: runTest
|
|
||||||
uses: ./
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Previous should have failed
|
|
||||||
if: ${{ steps.runTest.outcome == 'success'}}
|
|
||||||
run: |
|
|
||||||
echo "Expected previous step to fail"
|
|
||||||
exit 1
|
|
||||||
dontFailGradleTest:
|
dontFailGradleTest:
|
||||||
name: >
|
name: >
|
||||||
Don't fail on Gradle project
|
Don't fail on Gradle project
|
||||||
|
|||||||
@@ -8,11 +8,6 @@ if [[ -z "${SONAR_TOKEN}" ]]; then
|
|||||||
echo "============================ WARNING ============================"
|
echo "============================ WARNING ============================"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${SONAR_HOST_URL}" ]]; then
|
|
||||||
echo "This GitHub Action requires the SONAR_HOST_URL env variable."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${SONAR_ROOT_CERT}" ]]; then
|
if [[ -n "${SONAR_ROOT_CERT}" ]]; then
|
||||||
echo "Adding custom root certificate to java certificate store"
|
echo "Adding custom root certificate to java certificate store"
|
||||||
rm -f /tmp/tmpcert.pem
|
rm -f /tmp/tmpcert.pem
|
||||||
|
|||||||
Reference in New Issue
Block a user