File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+ name : Java CI with Gradle
9+
10+ on :
11+ push :
12+ workflow_dispatch :
13+
14+ permissions :
15+ contents : read
16+
17+ jobs :
18+ build :
19+
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+ with :
26+ token : ${{ secrets.CI_TOKEN }}
27+ submodules : true
28+ - name : Set up JDK 17
29+ uses : actions/setup-java@v4
30+ with :
31+ java-version : ' 17'
32+ distribution : ' temurin'
33+ - name : Build with Gradle
34+ timeout-minutes : 10
35+ uses : gradle/gradle-build-action@v3
36+ with :
37+ arguments : build --no-daemon
38+ - name : Upload test reports
39+ uses : actions/upload-artifact@v4
40+ if : always()
41+ with :
42+ name : test-reports
43+ path : " **/build/reports/*"
44+ retention-days : 5
You can’t perform that action at this time.
0 commit comments