File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ name: Java CI with Maven
6
6
on :
7
7
push :
8
8
branches : [ master ]
9
- pull_request :
10
- branches : [ master ]
11
9
12
10
jobs :
13
11
build :
Original file line number Diff line number Diff line change
1
+ # This workflow will build a Java project with Maven
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
+
4
+ name : Java CI with Maven for PRs
5
+
6
+ on :
7
+ pull_request :
8
+ branches : [ master ]
9
+
10
+ jobs :
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ with :
18
+ # Disabling shallow clone is recommended for improving relevancy of reporting with SonarCloud
19
+ fetch-depth : 0
20
+ - name : Set up JDK 1.8
21
+ uses : actions/setup-java@v1
22
+ with :
23
+ java-version : 1.8
24
+ - name : Build with Maven
25
+ run : mvn --show-version --no-transfer-progress verify --file pom.xml -Pcoverage
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments