File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Maven
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+ name : Build
5+
6+ on :
7+ push :
8+ branches : [ $default-branch ]
9+ pull_request :
10+ branches : [ $default-branch ]
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up JDK 8
18+ uses : actions/setup-java@v2
19+ with :
20+ java-version : ' 8'
21+ distribution : ' adopt'
22+ - name : Cache Maven packages
23+ uses : actions/cache@v2
24+ with :
25+ path : ~/.m2
26+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27+ restore-keys : ${{ runner.os }}-m2
28+ - name : Build with Maven
29+ run : mvn -B package --file pom.xml
You can’t perform that action at this time.
0 commit comments