SQSCANGHA-25 Rewrite tests using GitHub Actions

This commit is contained in:
Julien HENRY
2024-05-13 17:07:56 +02:00
committed by Antoine Vinot
parent 6abcb2537c
commit be64f35726
5 changed files with 137 additions and 118 deletions

View File

@@ -20,12 +20,12 @@ if [[ -n "${SONAR_ROOT_CERT}" ]]; then
keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias sonarqube -file /tmp/tmpcert.pem
fi
if [[ -f "${INPUT_PROJECTBASEDIR%/}pom.xml" ]]; then
if [[ -f "${INPUT_PROJECTBASEDIR%/}/pom.xml" ]]; then
echo "Maven project detected. You should run the goal 'org.sonarsource.scanner.maven:sonar' during build rather than using this GitHub Action."
exit 1
fi
if [[ -f "${INPUT_PROJECTBASEDIR%/}build.gradle" ]]; then
if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" ]]; then
echo "Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action."
exit 1
fi