Keep the PR CI and merge to master CI separate so the corresponding badge is accurate.
diff --git a/.github/workflows/Helix-CI.yml b/.github/workflows/Helix-CI.yml
index 873bff7..ee834c4 100644
--- a/.github/workflows/Helix-CI.yml
+++ b/.github/workflows/Helix-CI.yml
@@ -1,7 +1,5 @@
name: Helix CI
on:
- pull_request:
- branches: [ master ]
push:
branches: [ master ]
schedule:
diff --git a/.github/workflows/Helix-PR-CI.yml b/.github/workflows/Helix-PR-CI.yml
new file mode 100644
index 0000000..7409acd
--- /dev/null
+++ b/.github/workflows/Helix-PR-CI.yml
@@ -0,0 +1,20 @@
+name: Helix PR CI
+on:
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ PR_CI:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Build with Maven
+ run: mvn clean install -Dmaven.test.skip.exec=true
+ - name: Run All Tests
+ run: mvn -q test