Skip to content

Commit d2a7630

Browse files
authored
Merge pull request #400 from aheritier/fix-ci
Split PRs and Masters CI builds
2 parents 36c8831 + c7a0e9e commit d2a7630

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/ci.yml renamed to .github/workflows/ci-master.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ name: Java CI with Maven
66
on:
77
push:
88
branches: [ master ]
9-
pull_request:
10-
branches: [ master ]
119

1210
jobs:
1311
build:

.github/workflows/ci-pr.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 }}

0 commit comments

Comments
 (0)