File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : " maven"
4+ directory : " /"
5+ schedule :
6+ interval : " weekly"
7+ labels :
8+ - " dependencies"
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 : Java CI with Maven
5+
6+ on :
7+ push :
8+ branches : [ main ]
9+ pull_request :
10+ branches : [ main ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
21+ - name : Set up JDK 17
22+ uses : actions/setup-java@v3
23+ with :
24+ distribution : ' temurin'
25+ java-version : 17
26+ - name : Cache Maven packages
27+ uses : actions/cache@v3
28+ with :
29+ path : ~/.m2
30+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
31+ restore-keys : ${{ runner.os }}-m2
32+ - name : Build and analyze
33+ run : |
34+ mvn --batch-mode --update-snapshots verify
You can’t perform that action at this time.
0 commit comments