Skip to content

Commit 484d0e9

Browse files
Update maven.yml
1 parent dbc3445 commit 484d0e9

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/maven.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1-
# This workflow will build a Java project with Maven
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
1+
name: OpenPDF Maven Build
32

4-
name: OpenPDF maven build
5-
on: [ push, pull_request ]
3+
on: [push, pull_request]
64

75
permissions:
86
contents: read
97

108
jobs:
119
build:
1210
runs-on: ubuntu-latest
13-
name: Build with Java 17
11+
strategy:
12+
matrix:
13+
java: [17, 21, 24]
14+
name: Build with Java ${{ matrix.java }}
1415
steps:
1516
- uses: actions/checkout@v4
16-
- uses: actions/setup-java@v4
17+
18+
- name: Set up Java ${{ matrix.java }}
19+
uses: actions/setup-java@v4
1720
with:
1821
distribution: temurin
19-
java-version: 17
20-
- name: Check maven version
21-
run: mvn -v; echo "** ls **"; pwd && ls -l
22+
java-version: ${{ matrix.java }}
23+
24+
- name: Check Maven version and directory contents
25+
run: |
26+
mvn -v
27+
echo "** ls **"
28+
pwd && ls -l
2229
2330
- name: Build with Maven
24-
run: mvn -B install --file pom.xml
31+
run: mvn -B install --file pom.xml

0 commit comments

Comments
 (0)