From cb78ff77cd6b12ce8236c242686330975a8b7fef Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Mon, 1 Jan 2024 20:33:37 -0500 Subject: [PATCH] Added latest maven version to tests workflow. --- .github/workflows/run-tests.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 92dc85c..b4fd2dd 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -17,7 +17,19 @@ jobs: distribution: temurin cache: maven - - run: mvn --version + - name: Install Maven 3.9.6 + run: | + wget https://downloads.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz + tar -xvf apache-maven-3.9.6-bin.tar.gz + sudo mv apache-maven-3.9.6 /usr/local/apache-maven + rm apache-maven-3.9.6-bin.tar.gz + sudo update-alternatives --install /usr/bin/mvn mvn /usr/local/apache-maven/bin/mvn 1 + + - name: Check versions + run: | + java -version + javac -version + mvn -version - name: Test with Maven run: mvn -B verify --file pom.xml