File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+ name : Java CI with Gradle
9+
10+ on :
11+ push :
12+ branches : [ "main" ]
13+ pull_request :
14+ branches : [ "main" ]
15+
16+ jobs :
17+ build :
18+
19+ runs-on : ubuntu-latest
20+ permissions :
21+ contents : read
22+
23+ steps :
24+ - name : Check out
25+ uses : actions/checkout@v4
26+
27+ - name : Set up JDK
28+ uses : actions/setup-java@v4
29+ with :
30+ java-version : ' 11'
31+ distribution : ' temurin'
32+
33+ # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
34+ # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
35+ - name : Set up Gradle
36+ uses : gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
37+
38+
39+ - name : Run unit tests
40+ run : |
41+ ./gradlew wrapper --gradle-version=8.2.1
42+ ./gradlew dumper:app:test
43+
44+ dependency-submission :
45+ runs-on : ubuntu-latest
46+ permissions :
47+ contents : write
48+ steps :
49+ - name : Set up JDK
50+ uses : actions/setup-java@v4
51+ with :
52+ java-version : ' 11'
53+ distribution : ' temurin'
54+
55+ # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
56+ # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
57+ - name : Generate and submit dependency graph
58+ uses : gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
You can’t perform that action at this time.
0 commit comments