File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Checks
2+
3+ on :
4+ push :
5+ branches : ["**"]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ needs : test
11+
12+ strategy :
13+ matrix :
14+ java-version : [11, 17]
15+
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v4
19+
20+ - name : Set up JDK ${{ matrix.java-version }}
21+ uses : actions/setup-java@v4
22+ with :
23+ java-version : ${{ matrix.java-version }}
24+ distribution : " temurin"
25+ cache : " maven"
26+
27+ - name : Cache Maven packages
28+ uses : actions/cache@v4
29+ with :
30+ path : ~/.m2
31+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32+ restore-keys : ${{ runner.os }}-m2
33+
34+ - name : Build with Maven
35+ run : mvn clean compile package -DskipTests
36+
37+ test :
38+ runs-on : ubuntu-latest
39+
40+ steps :
41+ - name : Checkout code
42+ uses : actions/checkout@v4
43+
44+ - name : Set up JDK 17
45+ uses : actions/setup-java@v4
46+ with :
47+ java-version : " 17"
48+ distribution : " temurin"
49+ cache : " maven"
50+
51+ - name : Cache Maven packages
52+ uses : actions/cache@v4
53+ with :
54+ path : ~/.m2
55+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
56+ restore-keys : ${{ runner.os }}-m2
57+
58+ - name : Compile and run tests
59+ run : mvn clean compile test
You can’t perform that action at this time.
0 commit comments