disable CI/CD for draft PRs (#13784)

This commit is contained in:
Krishnan Parthasarathi
2021-11-29 23:35:07 -08:00
committed by GitHub
parent 42d11d9e7d
commit 5a22f2cf0b
6 changed files with 23 additions and 6 deletions
+4 -1
View File
@@ -3,7 +3,9 @@ name: Crosscompile
on: on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
build: build:
if: github.event.pull_request.draft == false
name: Build Tests with Go ${{ matrix.go-version }} on ${{ matrix.os }} name: Build Tests with Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
+4 -1
View File
@@ -3,7 +3,9 @@ name: Linters and Tests
on: on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
build: build:
if: github.event.pull_request.draft == false
name: Go ${{ matrix.go-version }} on ${{ matrix.os }} name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
+4 -1
View File
@@ -3,7 +3,9 @@ name: Functional Tests
on: on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
build: build:
if: github.event.pull_request.draft == false
name: Go ${{ matrix.go-version }} on ${{ matrix.os }} name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
+4 -1
View File
@@ -3,7 +3,9 @@ name: IAM integration
on: on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
iam-matrix-test: iam-matrix-test:
if: github.event.pull_request.draft == false
name: "[Go=${{ matrix.go-version }}|ldap=${{ matrix.ldap }}|etcd=${{ matrix.etcd }}|openid=${{ matrix.openid }}]" name: "[Go=${{ matrix.go-version }}|ldap=${{ matrix.ldap }}|etcd=${{ matrix.etcd }}|openid=${{ matrix.openid }}]"
runs-on: ubuntu-latest runs-on: ubuntu-latest
+4 -1
View File
@@ -3,7 +3,9 @@ name: Multi-site replication tests
on: on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
replication-test: replication-test:
if: github.event.pull_request.draft == false
name: Replication Tests with Go ${{ matrix.go-version }} name: Replication Tests with Go ${{ matrix.go-version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
+3 -1
View File
@@ -3,7 +3,8 @@ name: Upgrade old version tests
on: on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@@ -13,6 +14,7 @@ concurrency:
jobs: jobs:
build: build:
if: github.event.pull_request.draft == false
name: Go ${{ matrix.go-version }} on ${{ matrix.os }} name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy: