From 3d4c4bbdf05baa93571f00d999efd09e82341d80 Mon Sep 17 00:00:00 2001 From: Andris Enins Date: Tue, 19 May 2026 12:46:08 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20install=20Maven=203.9.9=20in=20CI=20?= =?UTF-8?q?=E2=80=94=20mvn=20was=20not=20in=20PATH=20on=20pi-runner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions/setup-java@v4 installs the JDK but not Maven itself. pi-runner does not have mvn pre-installed. Add an explicit curl install step matching the approach used in backend/Dockerfile. --- .gitea/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b9a9226..b441548 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -37,6 +37,15 @@ jobs: java-version: '21' cache: maven + # actions/setup-java installs the JDK but not Maven. + # pi-runner has no pre-installed mvn — download the same version used + # in backend/Dockerfile to keep the build environment consistent. + - name: Install Maven 3.9.9 + run: | + curl -fsSL https://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz \ + | tar -xz -C /opt + echo "/opt/apache-maven-3.9.9/bin" >> $GITHUB_PATH + - name: Run tests working-directory: backend run: mvn -q -ntp clean verify