FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Optimize workflow · danieldbower/splitio-java-client@c8dddc0 · GitHub

Commit c8dddc0

Browse files
Cristian Daniel Fadón
committed
Optimize workflow
1 parent 946e387 commit c8dddc0

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ jobs:
2828
jdk:
2929
- '8'
3030
- '11'
31+
push:
32+
- github.event_name == 'push' && (github.ref == 'refs/heads/master' && github.ref == 'refs/heads/development')
33+
pull_request:
34+
- github.event_name == 'pull_request'
35+
exclude:
36+
- jdk: '8'
37+
pull_request: true
38+
- jdk: '11'
39+
push: false
3140
env:
3241
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
3342
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
@@ -50,10 +59,10 @@ jobs:
5059
- name: Setup Maven
5160
run: cp .ci.settings.xml ${HOME}/.m2/settings.xml
5261

53-
- name: Test
54-
if: matrix.jdk == '8' && github.event_name == 'pull_request'
55-
run: |
56-
mvn --batch-mode clean install
62+
# - name: Test
63+
# if: matrix.jdk == '8' && github.event_name == 'pull_request'
64+
# run: |
65+
# mvn --batch-mode clean install
5766

5867
- name: SonarQube Scan (Push)
5968
if: matrix.jdk == '11' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development')
@@ -68,6 +77,6 @@ jobs:
6877
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} \
6978
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
7079
71-
- name: Deploy
80+
- name: Test and deploy
7281
if: matrix.jdk == '8' && github.event_name == 'push'
7382
run: mvn --batch-mode deploy -P test

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL