File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Pull request workflow
2
+ on :
3
+ pull_request :
4
+ branches : [ master ]
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ with : # Needed to make checkout of Git submodule too
13
+ submodules : ' true'
14
+
15
+ - name : Set up JDK
16
+ uses : actions/setup-java@v4
17
+ with :
18
+ distribution : ' temurin'
19
+ java-version : ' 21'
20
+ cache : ' gradle'
21
+
22
+ - name : Grant execute permission for gradlew
23
+ run : chmod +x gradlew
24
+
25
+ - name : Build with Gradle
26
+ run : ./gradlew build --no-daemon
Original file line number Diff line number Diff line change @@ -2,15 +2,16 @@ name: Java CI with Gradle
2
2
on :
3
3
push :
4
4
branches : [ master ]
5
- pull_request :
6
- branches : [ master ]
5
+ workflow_dispatch :
7
6
8
7
jobs :
9
8
build :
10
9
runs-on : ubuntu-latest
11
10
12
11
steps :
13
12
- uses : actions/checkout@v4
13
+ with :
14
+ submodules : ' true'
14
15
15
16
- name : Set up JDK
16
17
uses : actions/setup-java@v4
You can’t perform that action at this time.
0 commit comments