NO-JIRA: Update github actions

Updates OS from Ubuntu 18 to Ubuntu 20
Updates github actions cache, checkout and setup-java to v3
This commit is contained in:
GChuf 2022-07-01 20:02:06 +01:00
parent ea498e50e3
commit 0ac764324d
1 changed files with 8 additions and 8 deletions

View File

@ -5,18 +5,18 @@ on: [push, pull_request, workflow_dispatch]
jobs:
test:
name: Test (${{ matrix.java }})
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
java: [ 11, 17 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Cache Maven Local Repo
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.m2/repository/
@ -25,7 +25,7 @@ jobs:
${{ runner.os }}-mvn-
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
@ -44,18 +44,18 @@ jobs:
checks:
name: Checks (${{ matrix.java }})
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
java: [ 11, 17 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Cache Maven Local Repo
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.m2/repository/
@ -64,7 +64,7 @@ jobs:
${{ runner.os }}-mvn-
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'