From e3d06bae75bf1e4817226fa39655c411bfcc3262 Mon Sep 17 00:00:00 2001 From: el-ouali Date: Mon, 2 Dec 2024 17:09:25 +0100 Subject: [PATCH] Actualiser .github/workflows/maven.yml --- .github/workflows/maven.yml | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 83e2877..f91c8e9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,23 +1,19 @@ -name: Java CI +image: maven:3.8.3-openjdk-11 -on: [push, pull_request] +stages: + - build + - test -jobs: - build: - runs-on: ubuntu-latest +build: + stage: build + script: + - mvn compile - steps: - - uses: actions/checkout@v2 - - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'adopt' - - - name: Build and test - env: - DB_URL: jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/projet_gei_023 - DB_USER: projet_gei_023 - DB_PASSWORD: ohQu4ood - run: mvn clean verify \ No newline at end of file +test: + stage: test + script: + - mvn 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