From b59ff0dea25c1b9fa7c3b145316aae6368e90bfb Mon Sep 17 00:00:00 2001 From: Kichura <68134602+Kichura@users.noreply.github.com> Date: Sat, 9 Mar 2024 14:41:35 +0100 Subject: [PATCH] [ci skip] Oh neptune. (#2) Updates checkout and setup-java from v1 -> v4, Then adds the distribution and check-latest flags to clarify what JDK engine we want and finally freeze the ubuntu version to specific version. --- .github/workflows/maven.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 73ac252..6b3c21f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,17 +1,16 @@ -name: Java CI - +name: Java CI with Maven on: [push, pull_request] - jobs: build: - - runs-on: ubuntu-latest - + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Set up JDK 8 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: 'temurin' + java-version: 8 + check-latest: true - name: Build with Maven run: mvn package --file pom.xml