diff --git a/.github/workflows/unit-tests-push.yml b/.github/workflows/unit-tests-push.yml index 845ea112..b995b924 100644 --- a/.github/workflows/unit-tests-push.yml +++ b/.github/workflows/unit-tests-push.yml @@ -28,7 +28,7 @@ jobs: run: chmod +x mvnw - name: Build and test run: | - ./mvnw -B clean verify sonar:sonar -Dsonar.projectKey=wiq_es04b -Dsonar.organization=Arquisoft -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dspring.profiles.active=test -Dspring.datasource.url=jdbc:mysql://localhost:3306/test_database -Dspring.datasource.username=root -Dspring.datasource.password=root -Dspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -Dspring.jpa.hibernate.ddl-auto=create + ./mvnw -B -e clean verify sonar:sonar -Dsonar.projectKey=wiq_es04b -Dsonar.organization=Arquisoft -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dspring.profiles.active=test -Dspring.datasource.url=jdbc:mysql://localhost:3306/test_database -Dspring.datasource.username=root -Dspring.datasource.password=root -Dspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties deleted file mode 100644 index af5627f0..00000000 --- a/src/main/resources/application-test.properties +++ /dev/null @@ -1,8 +0,0 @@ -# Deploy in HTTPS -server.port=443 - -#spring.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE} -#spring.datasource.username=${MYSQL_USER} -#spring.datasource.password=${MYSQL_PASSWORD} -#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.jpa.hibernate.ddl-auto=create \ No newline at end of file diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties deleted file mode 100644 index af5627f0..00000000 --- a/src/test/resources/application-test.properties +++ /dev/null @@ -1,8 +0,0 @@ -# Deploy in HTTPS -server.port=443 - -#spring.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE} -#spring.datasource.username=${MYSQL_USER} -#spring.datasource.password=${MYSQL_PASSWORD} -#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.jpa.hibernate.ddl-auto=create \ No newline at end of file