diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index a5fca63..986441e 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -98,25 +98,16 @@ jobs: git clone --quiet "$CLONE_URL_WITH_AUTH" . echo "${{ gitea.repository }} cloned successfully." - - name: Install OS dependencies - run: | - apt-get update -qq - apt-get install -y git curl unzip tar bash ca-certificates wget build-essential libssl-dev + - uses: actions/checkout@v5 + - name: Set up JDK 11 for x64 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + architecture: x64 - - name: Install Java 21 manually - run: | - apt-get update && apt-get install -y openjdk-21-jdk - export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 - export PATH=$JAVA_HOME/bin:$PATH - java -version - - - name: Install Maven manually - run: | - mkdir -p $HOME/maven - curl -sL https://archive.apache.org/dist/maven/maven-3/3.9.5/binaries/apache-maven-3.9.5-bin.tar.gz | tar -xz -C $HOME/maven --strip-components=1 - export PATH=$HOME/maven/bin:$PATH - mvn -version - + - name: Run the Maven verify phase + run: mvn --batch-mode --update-snapshots verify # Setup Java 21 and Maven with caching - name: Set up Java & Maven