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