@@ -13,12 +13,13 @@ jobs:
1313 matrix :
1414 java_version : [ "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23" ]
1515 steps :
16- - uses : actions/checkout@v4
16+ - uses : actions/checkout@v5
1717 - name : Set up JDK for compilation
18- uses : actions/setup-java@v4
18+ uses : actions/setup-java@v5
1919 with :
2020 distribution : " zulu"
21- java-version : " 23" # Always use the latest JDK for building
21+ java-version : " 21" # Always use the most recent LTS JDK for building
22+ cache : " maven"
2223 - name : Load Maven dependencies cache
2324 uses : actions/cache@v3
2425 with :
@@ -31,21 +32,23 @@ jobs:
3132 - name : Compile
3233 run : make build
3334 - name : Set up Java ${{ matrix.java_version }}
34- uses : actions/setup-java@v3
35+ uses : actions/setup-java@v5
3536 with :
3637 distribution : " zulu"
3738 java-version : ${{ matrix.java_version }}
39+ cache : " maven"
3840 - name : Run test with Java ${{ matrix.java_version }}
3941 run : make test
4042 coverage :
4143 runs-on : ubuntu-latest
4244 steps :
43- - uses : actions/checkout@v4
45+ - uses : actions/checkout@v5
4446 - name : Set up JDK for compilation
45- uses : actions/setup-java@v4
47+ uses : actions/setup-java@v5
4648 with :
4749 distribution : " zulu"
48- java-version : " 23" # Always use the latest JDK for building
50+ java-version : " 21" # Always use the most recent LTS JDK for building
51+ cache : " maven"
4952 - name : Install dependencies
5053 run : make install
5154 - name : Test coverage
@@ -68,18 +71,18 @@ jobs:
6871 lint :
6972 runs-on : ubuntu-latest
7073 steps :
71- - uses : actions/checkout@v4
72- - name : Set up JDK for compilation
73- uses : actions/setup-java@v4
74+ - uses : actions/checkout@v5
75+ - uses : actions/setup-java@v5
7476 with :
7577 distribution : " zulu"
76- java-version : " 23" # Always use the latest JDK for building
77- - name : Install dependencies
78- run : make install
79- - name : Run CheckStyle checks
80- uses : nikitasavinov/checkstyle-action@0.5.1
78+ java-version : " 21" # Always use the most recent LTS JDK for building
79+ cache : " maven"
80+ - name : Install checkstyle and style guide
81+ run : make install-checkstyle
82+ - name : Lint
83+ run : make lint
84+ - name : Upload Test results
85+ uses : actions/upload-artifact@master
8186 with :
82- level : error
83- fail_on_error : true
84- checkstyle_config : easypost_java_style.xml
85- tool_name : " style_enforcer"
87+ name : DependencyCheck report
88+ path : ${{github.workspace}}/target/dependency-check-report.html
0 commit comments