From e0cbc5f49dc321a87ca71f31e960d840e5eaca3e Mon Sep 17 00:00:00 2001 From: el-ouali Date: Mon, 2 Dec 2024 17:13:30 +0100 Subject: [PATCH] Actualiser .github/workflows/maven.yml --- .github/workflows/maven.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index f91c8e9..1d08731 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,19 +1,15 @@ -image: maven:3.8.3-openjdk-11 - -stages: - - build - - test - -build: - stage: build - script: - - mvn compile +workflow: + rules: + - if: $CI_COMMIT_BRANCH test: - stage: test + image: maven:3.8.3-openjdk-11 script: - - mvn test + - mvn clean test variables: DB_URL: "jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/projet_gei_023" DB_USER: "projet_gei_023" - DB_PASSWORD: "ohQu4ood" \ No newline at end of file + DB_PASSWORD: "ohQu4ood" + artifacts: + reports: + junit: target/surefire-reports/*.xml \ No newline at end of file