File tree Expand file tree Collapse file tree 2 files changed +39
-14
lines changed
Expand file tree Collapse file tree 2 files changed +39
-14
lines changed Original file line number Diff line number Diff line change 1+ name : Java CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test :
13+ name : Build/Test
14+
15+ runs-on : ubuntu-latest
16+
17+ # Test on each supported Java LTS version
18+ strategy :
19+ matrix :
20+ java_version : [8, 11, 17]
21+ steps :
22+ - uses : actions/checkout@v2
23+ with :
24+ fetch-depth : 2
25+ - name : Set up JDK ${{ matrix.java_version }}
26+ uses : actions/setup-java@v2
27+ with :
28+ distribution : ' zulu'
29+ java-version : ${{ matrix.java_version }}
30+ - name : Cache Maven packages
31+ uses : actions/cache@v2
32+ with :
33+ path : ~/.m2
34+ key : ${{ runner.os }}-java-${{ matrix.java_version }}-m2-${{ hashFiles('**/pom.xml') }}
35+ restore-keys : ${{ runner.os }}-java-${{ matrix.java_version }}-m2
36+ - name : Build with Maven
37+ run : mvn --batch-mode --update-snapshots verify
38+ - name : Codecov
39+ uses : codecov/codecov-action@v1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments