From 067778f680aeacb11625547890b92d7bbfdeba6f Mon Sep 17 00:00:00 2001 From: Anton Hughes Date: Thu, 5 Dec 2024 10:01:34 +1300 Subject: [PATCH 1/2] Add job to fail if pull request is a draft --- .github/workflows/test-suite.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index ac0c2509..eb8b5246 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -27,6 +27,14 @@ env: # Enable portable to prevent issues with caching `blst` for the wrong CPU type # TEST_FEATURES: portable jobs: + fail_if_pull_request_is_draft: + if: github.event.pull_request.draft == true + runs-on: ubuntu-latest + steps: + - name: Fail if pull request is a draft + run: exit 1 + + check-labels: runs-on: ubuntu-latest name: Check for 'skip-ci' label From de905f165ddbc7095db7d6d60dedf7992040b75b Mon Sep 17 00:00:00 2001 From: Anton Hughes Date: Thu, 5 Dec 2024 10:27:29 +1300 Subject: [PATCH 2/2] Update pull request trigger types in test suite workflow --- .github/workflows/test-suite.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index eb8b5246..63a42399 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -6,6 +6,7 @@ on: - stable - 'pr/*' pull_request: + types: [opened, synchronize, reopened, ready_for_review] merge_group: concurrency: