File tree Expand file tree Collapse file tree 2 files changed +42
-4
lines changed
Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 1- name : Build
1+ name : Build and Deploy
22
33on :
44 push :
55 branches : [ "master" ]
6- pull_request_target :
7- branches : [ "master" ]
86
97permissions :
10- contents : read
8+ contents : write
119 checks : write
1210
1311jobs :
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - edited
8+ - synchronize
9+ - reopened
10+
11+ permissions :
12+ contents : write
13+ checks : write
14+
15+ jobs :
16+ build :
17+ name : Build
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+
24+ - name : Set up JDK 17
25+ uses : actions/setup-java@v3
26+ with :
27+ java-version : ' 17'
28+ distribution : ' temurin'
29+
30+ - name : Build
31+ uses : gradle/gradle-build-action@v2
32+ with :
33+ gradle-version : 8.5
34+ arguments : build
35+
36+ - name : Test
37+ uses : gradle/gradle-build-action@v2
38+ with :
39+ gradle-version : 8.5
40+ arguments : test
You can’t perform that action at this time.
0 commit comments