github/workflows: update actions and setup-java details

commit-id:779a50c3
This commit is contained in:
Paul Campbell 2022-10-07 07:42:24 +01:00
parent 55de923e25
commit 4d72718da4
3 changed files with 21 additions and 9 deletions

View file

@ -11,13 +11,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17 ]
java: [ 11, 17, 18, 19 ]
steps:
- uses: kamiazya/setup-graphviz@v1
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3.1.0
- name: setup-jdk-${{ matrix.java }}
uses: actions/setup-java@v1.4.3
uses: actions/setup-java@v3.5.1
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
check-latest: true
- name: build-jar
run: mvn -B install

View file

@ -6,5 +6,13 @@ jobs:
test_dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- name: setup-jdk-11
uses: actions/setup-java@v3.5.1
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
check-latest: true
- name: check dependencies
run: mvn dependency-check:check

View file

@ -9,12 +9,14 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: kamiazya/setup-graphviz@v1
- uses: actions/checkout@v2.3.4
- name: Set up JDK
uses: actions/setup-java@v1.4.3
- uses: actions/checkout@v3.1.0
- name: setup-jdk-11
uses: actions/setup-java@v3.5.1
with:
java-version: 11
distribution: 'temurin'
java-version: '11'
cache: 'maven'
check-latest: true
- name: Build with Maven
run: mvn -B install
- name: Nexus Repo Publish