File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Project
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ workflow_dispatch :
9
+ inputs :
10
+ checkout-ref :
11
+ description : " The branch, tag or SHA to checkout. See actions/checkout 'ref'."
12
+ required : false
13
+ type : string
14
+
15
+ concurrency :
16
+ group : " Build Project: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
17
+ cancel-in-progress : true
18
+
19
+ jobs :
20
+
21
+ validate-gradle-wrapper :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - name : Checkout the repo
25
+ uses : actions/checkout@v4
26
+ with :
27
+ ref : ${{ inputs.checkout-ref || github.ref }}
28
+
29
+ - name : Validate Gradle Wrapper
30
+ uses : gradle/actions/wrapper-validation@v3
31
+
32
+
33
+ build-gradle :
34
+ needs : validate-gradle-wrapper
35
+ strategy :
36
+ matrix :
37
+ os :
38
+ - macos-latest
39
+ - ubuntu-latest
40
+ - windows-latest
41
+ fail-fast : true
42
+ runs-on : ${{ matrix.os }}
43
+ steps :
44
+ - name : Checkout the repo
45
+ uses : actions/checkout@v4
46
+ with :
47
+ ref : ${{ inputs.checkout-ref || github.ref }}
48
+
49
+ - name : Setup JDK
50
+ uses : actions/setup-java@v4
51
+ with :
52
+ distribution : " temurin"
53
+ java-version : " 21"
54
+
55
+ - name : Setup Gradle
56
+ uses : gradle/actions/setup-gradle@v3
57
+ with :
58
+ gradle-home-cache-cleanup : true
59
+ cache-encryption-key : ${{ secrets.GRADLE_CONFIGURATION_CACHE_ENCRYPTION_KEY }}
60
+
61
+ - name : Run tests
62
+ run : ./gradlew build --scan --stacktrace
You can’t perform that action at this time.
0 commit comments