SQSCANGHA-31 Stop making SONAR_HOST_URL mandatory
This commit is contained in:
parent
8c56bc3994
commit
44de84c3e8
|
@ -45,23 +45,6 @@ jobs:
|
|||
- name: Assert
|
||||
run: |
|
||||
./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:
|
||||
name: >
|
||||
Don't fail on Gradle project
|
||||
|
|
|
@ -8,11 +8,6 @@ if [[ -z "${SONAR_TOKEN}" ]]; then
|
|||
echo "============================ WARNING ============================"
|
||||
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
|
||||
echo "Adding custom root certificate to java certificate store"
|
||||
rm -f /tmp/tmpcert.pem
|
||||
|
|
Loading…
Reference in New Issue