From 59ee4ba9ee1542811acde79b952d2abfaf4f5be0 Mon Sep 17 00:00:00 2001 From: mouloud Date: Sun, 16 Feb 2025 21:29:01 -0500 Subject: [PATCH 1/2] workflow --- .github/workflows/main.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 277227a..a7cf7cc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,29 +1,26 @@ name: Java CI with Maven on: - push: - branches: - - main # Cette action s'exécute sur la branche "main" chaque fois qu'un commit est effectué. pull_request: branches: - - main # Cette action s'exécute lors de la création d'une pull request pour la branche "main". + - main # Déclenche l'action sur une PR vers la branche `main` jobs: build: - runs-on: ubuntu-latest # Utilise la dernière version d'Ubuntu pour l'exécution du job. + runs-on: ubuntu-latest # Utilisation de la dernière version d'Ubuntu pour exécuter l'action steps: - name: Checkout repository - uses: actions/checkout@v2 # Cette action clone ton code dans l'environnement d'exécution. + uses: actions/checkout@v2 # Clone ton code dans l'environnement d'exécution - - name: Set up JDK 23 - uses: actions/setup-java@v2 # Installe Java JDK 11 + - name: Set up JDK 11 + uses: actions/setup-java@v2 # Installe JDK 11 with: - java-version: '23' + java-version: '11' distribution: 'adoptopenjdk' - name: Build with Maven - run: mvn clean install # Compile et teste ton projet Maven. + run: mvn clean install # Compile ton projet Maven - name: Run tests - run: mvn test # Lance les tests automatisés de ton projet. + run: mvn test # Lance les tests unitaires From 2b0780093ba18dbb4637162b6c311695b1f998f1 Mon Sep 17 00:00:00 2001 From: mouloud Date: Sun, 16 Feb 2025 21:56:42 -0500 Subject: [PATCH 2/2] workflow --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a7cf7cc..1d07550 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: Java CI with Maven on: pull_request: branches: - - main # Déclenche l'action sur une PR vers la branche `main` + - master # Déclenche l'action sur une PR vers la branche `main` jobs: build: