File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,9 @@ name: Java CI
22
33on :
44 push :
5- branches :
6- - master
5+ branches : [ master ]
76 pull_request :
8- branches :
9- - master
7+ branches : [ master ]
108 workflow_dispatch :
119
1210jobs :
@@ -16,25 +14,24 @@ jobs:
1614 strategy :
1715 matrix :
1816 os : [ubuntu-latest, windows-latest]
17+ # We test across all three to ensure backward compatibility
1918 java-version : [ 8, 11, 17 ]
2019 fail-fast : false
2120
2221 name : ${{ matrix.os }} - Java ${{ matrix.java-version }} - Maven
2322 steps :
2423 - name : Checkout ParserNG repo
25- uses : actions/checkout@v2
24+ uses : actions/checkout@v4 # Updated to v4
2625
2726 - name : Set up JDK ${{ matrix.java-version }}
28- uses : actions/setup-java@v2
27+ uses : actions/setup-java@v4 # Updated to v4
2928 with :
3029 java-version : ${{ matrix.java-version }}
31- distribution : ' adopt'
32- - name : Set up Maven
33- uses : stCarolas/setup-maven@v4.4
34- with :
35- maven-version : 3.8.2
36-
37- - name : Build ParserNG with Maven
38- run : mvn "-Dgpg.skip" "--batch-mode" "--update-snapshots" "clean" "install"
30+ distribution : ' temurin' # 'adopt' is legacy; 'temurin' is the modern standard
31+ cache : maven
3932
33+ # Note: setup-java v4 handles Maven setup automatically.
34+ # You can usually remove stCarolas/setup-maven unless you need a very specific version.
4035
36+ - name : Build ParserNG with Maven
37+ run : mvn "-Dgpg.skip" "--batch-mode" "--update-snapshots" "clean" "install"
You can’t perform that action at this time.
0 commit comments