diff --git a/.github/workflows/build-and-bench.yml b/.github/workflows/build-and-bench.yml index af8e830fb..dd2107e55 100644 --- a/.github/workflows/build-and-bench.yml +++ b/.github/workflows/build-and-bench.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -12,6 +13,7 @@ permissions: jobs: build: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build-and-run-examples.yml b/.github/workflows/build-and-run-examples.yml index 1f9be462e..e02a80da7 100644 --- a/.github/workflows/build-and-run-examples.yml +++ b/.github/workflows/build-and-run-examples.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -18,6 +19,7 @@ jobs: debug: [ '', 'DEBUG_VERBOSE=1' ] test: [ '', '--test' ] auth: [ '', 'AUTH=1' ] + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest timeout-minutes: 5 diff --git a/.github/workflows/build-and-test-clientonly.yml b/.github/workflows/build-and-test-clientonly.yml index 1c7e92308..c8a96bcdb 100644 --- a/.github/workflows/build-and-test-clientonly.yml +++ b/.github/workflows/build-and-test-clientonly.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -14,6 +15,7 @@ jobs: strategy: matrix: transport: [ 'tcp', 'tls' ] + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build-and-test-refactor.yml b/.github/workflows/build-and-test-refactor.yml index 15253f618..cb398df99 100644 --- a/.github/workflows/build-and-test-refactor.yml +++ b/.github/workflows/build-and-test-refactor.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -15,7 +16,12 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] + # Exclude macOS for draft PRs due to its small pool + os: >- + ${{ (github.event_name == 'pull_request' && + github.event.pull_request.draft) && + fromJSON('["ubuntu-latest"]') || + fromJSON('["ubuntu-latest", "macos-latest"]') }} runs-on: ${{ matrix.os }} diff --git a/.github/workflows/build-and-test-stress.yml b/.github/workflows/build-and-test-stress.yml index b14d8ede4..c490d286d 100644 --- a/.github/workflows/build-and-test-stress.yml +++ b/.github/workflows/build-and-test-stress.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -12,6 +13,7 @@ permissions: jobs: build: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/.github/workflows/build-and-test-whnvmtool.yml b/.github/workflows/build-and-test-whnvmtool.yml index 8588cea95..83b34514e 100644 --- a/.github/workflows/build-and-test-whnvmtool.yml +++ b/.github/workflows/build-and-test-whnvmtool.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -12,6 +13,7 @@ permissions: jobs: build: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build-and-test-wolfssl-lib.yml b/.github/workflows/build-and-test-wolfssl-lib.yml index 07b849494..d79dd90e3 100644 --- a/.github/workflows/build-and-test-wolfssl-lib.yml +++ b/.github/workflows/build-and-test-wolfssl-lib.yml @@ -7,6 +7,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -14,6 +15,7 @@ permissions: jobs: build: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d1af2729b..4fe6f87c7 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -17,6 +18,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/code-coverage-refactor.yml b/.github/workflows/code-coverage-refactor.yml index f3ef65cfe..c6648fe21 100644 --- a/.github/workflows/code-coverage-refactor.yml +++ b/.github/workflows/code-coverage-refactor.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -11,6 +12,7 @@ permissions: jobs: coverage: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 23bf8b457..386fc7f80 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] permissions: @@ -11,6 +12,7 @@ permissions: jobs: coverage: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest strategy: fail-fast: false