Skip to content

Commit

Permalink
TEST: Do not run CI if the PR is in draft.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhm0311 authored and jhpark816 committed Sep 6, 2024
1 parent 45dcaab commit 45720de
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
branches:
- develop
types:
- opened
- synchronize
- reopened
- ready_for_review

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -21,6 +26,9 @@ jobs:
jdk: [ 8, 11, 17 ]
os: [ ubuntu-20.04 ]
fail-fast: true
if: |
(github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
(github.event_name == 'push' && github.ref == 'refs/heads/master')
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
Expand All @@ -35,9 +43,9 @@ jobs:
run: |
# clone
git clone https://github.com/naver/arcus.git $HOME/arcus
# build server
cd ~/arcus && docker compose up -d
cd ~/arcus && docker compose up -d
- name: Test ARCUS Client Without ZK
run: mvn clean verify -DUSE_ZK=false -Dtest=ObserverTest,ArcusClientCreateTest
Expand Down

0 comments on commit 45720de

Please sign in to comment.