File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+ name : Java CI with Maven
5+
6+ on :
7+ workflow_dispatch :
8+ push :
9+ branches : [ "main" ]
10+ pull_request :
11+ branches : [ "main" ]
12+
13+ jobs :
14+ build :
15+
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+ - name : Set up JDK 8
21+ uses : actions/setup-java@v4
22+ with :
23+ java-version : ' 8'
24+ distribution : ' temurin'
25+ cache : maven
26+ - name : Build with Maven
27+ run : mvn -B package --file pom.xml
28+
29+ # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
30+ - name : Update dependency graph
31+ uses : advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
You can’t perform that action at this time.
0 commit comments