From 5a7aec5344cb1c199705047d6d984bc6f32ab1d8 Mon Sep 17 00:00:00 2001 From: SarTron-NorthBlue Date: Wed, 15 Jul 2026 09:10:43 +0400 Subject: [PATCH] Fix CI : revient sur ubuntu-latest, installe Maven via apt-get Le container maven:3.9-eclipse-temurin-17 n'a pas Node.js, requis par les actions JS (checkout, cache, upload-artifact) -> echec au premier step. Retour au runner par defaut + installation explicite de Maven (actions/setup-java installe le JDK mais jamais Maven). Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9c596de..a2a1d45 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -9,18 +9,20 @@ on: jobs: build: runs-on: ubuntu-latest - container: maven:3.9-eclipse-temurin-17 steps: - name: Checkout uses: actions/checkout@v4 - - name: Cache Maven dependencies - uses: actions/cache@v4 + - name: Setup JDK 17 + uses: actions/setup-java@v4 with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + distribution: temurin + java-version: '17' + cache: maven + + - name: Install Maven + run: | + which mvn || (sudo apt-get update && sudo apt-get install -y maven) - name: Build and test run: mvn -B clean verify