mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
ci: don't run CI for draft PRs
This commit is contained in:
12
.github/workflows/wpt.yml
vendored
12
.github/workflows/wpt.yml
vendored
@@ -12,6 +12,14 @@ on:
|
|||||||
- "src/*.zig"
|
- "src/*.zig"
|
||||||
- "test/wpt/**"
|
- "test/wpt/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
# By default GH trigger on types opened, synchronize and reopened.
|
||||||
|
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
|
||||||
|
# Since we skip the job when the PR is in draft state, we want to force CI
|
||||||
|
# running when the PR is marked ready_for_review w/o other change.
|
||||||
|
# see https://github.com/orgs/community/discussions/25722#discussioncomment-3248917
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
@@ -24,6 +32,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
wpt:
|
wpt:
|
||||||
name: web platform tests
|
name: web platform tests
|
||||||
|
|
||||||
|
# Don't run the CI with draft PR.
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/browsercore/zig-browsercore:0.11.0
|
image: ghcr.io/browsercore/zig-browsercore:0.11.0
|
||||||
|
|||||||
12
.github/workflows/zig-fmt.yml
vendored
12
.github/workflows/zig-fmt.yml
vendored
@@ -2,6 +2,14 @@ name: zig-fmt
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
# By default GH trigger on types opened, synchronize and reopened.
|
||||||
|
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
|
||||||
|
# Since we skip the job when the PR is in draft state, we want to force CI
|
||||||
|
# running when the PR is marked ready_for_review w/o other change.
|
||||||
|
# see https://github.com/orgs/community/discussions/25722#discussioncomment-3248917
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
@@ -13,6 +21,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
zig-fmt:
|
zig-fmt:
|
||||||
name: zig fmt
|
name: zig fmt
|
||||||
|
|
||||||
|
# Don't run the CI with draft PR.
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/browsercore/zig:0.11.0
|
image: ghcr.io/browsercore/zig:0.11.0
|
||||||
|
|||||||
12
.github/workflows/zig-test.yml
vendored
12
.github/workflows/zig-test.yml
vendored
@@ -11,6 +11,14 @@ on:
|
|||||||
- "src/**/*.zig"
|
- "src/**/*.zig"
|
||||||
- "src/*.zig"
|
- "src/*.zig"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
# By default GH trigger on types opened, synchronize and reopened.
|
||||||
|
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
|
||||||
|
# Since we skip the job when the PR is in draft state, we want to force CI
|
||||||
|
# running when the PR is marked ready_for_review w/o other change.
|
||||||
|
# see https://github.com/orgs/community/discussions/25722#discussioncomment-3248917
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
@@ -22,6 +30,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
zig-test:
|
zig-test:
|
||||||
name: zig test
|
name: zig test
|
||||||
|
|
||||||
|
# Don't run the CI with draft PR.
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/browsercore/zig-browsercore:0.11.0
|
image: ghcr.io/browsercore/zig-browsercore:0.11.0
|
||||||
|
|||||||
Reference in New Issue
Block a user