File tree Expand file tree Collapse file tree 1 file changed +24
-5
lines changed
Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change 1- name : Java CI
1+ name : Build and test
22
33on :
44 push :
77 branches : [main]
88
99jobs :
10- build :
10+ build-scala-12 :
1111 runs-on : ubuntu-latest
1212
1313 steps :
1414 - uses : actions/checkout@v2
15- - name : Set up JDK 1.8
15+ - name : Set up JDK 11
1616 uses : actions/setup-java@v1
1717 with :
18- java-version : 1.8
18+ distributions : adopt
19+ java-version : 11
20+ check-latest : true
1921 - name : Cache Maven packages
2022 uses : actions/cache@v2
2123 with :
2224 path : ~/.m2
2325 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2426 restore-keys : ${{ runner.os }}-m2
2527 - name : Build with Maven
26- run : mvn -B package --file pom.xml
28+ run : ./mvnw -B package --file pom.xml -Pscala-2.12
29+ build-scala-11 :
30+ runs-on : ubuntu-latest
31+
32+ steps :
33+ - uses : actions/checkout@v2
34+ - name : Set up JDK 8
35+ uses : actions/setup-java@v1
36+ with :
37+ java-version : 8
38+ - name : Cache Maven packages
39+ uses : actions/cache@v2
40+ with :
41+ path : ~/.m2
42+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
43+ restore-keys : ${{ runner.os }}-m2
44+ - name : Build with Maven
45+ run : ./mvnw -B package --file pom.xml -Pscala-2.11
2746
2847# vim: ts=2:sts=2:sw=2:expandtab
You can’t perform that action at this time.
0 commit comments