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