mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-18 07:12:47 +03:00
chore(ci): skip CI on draft pull requests (#58750)
This commit is contained in:
@@ -5,6 +5,7 @@ on:
|
||||
branches: [dev]
|
||||
pull_request:
|
||||
branches: [dev]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
@@ -14,6 +15,7 @@ concurrency:
|
||||
jobs:
|
||||
check:
|
||||
name: typecheck
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
@@ -5,6 +5,7 @@ on:
|
||||
branches: [dev]
|
||||
pull_request:
|
||||
branches: [dev]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
@@ -16,6 +17,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
nix-eval:
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
|
||||
@@ -12,6 +12,7 @@ on:
|
||||
- "packages/session-ui/**"
|
||||
pull_request:
|
||||
branches: [dev]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
paths:
|
||||
- ".github/workflows/storybook.yml"
|
||||
- "package.json"
|
||||
@@ -28,6 +29,7 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
name: storybook build
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
@@ -5,6 +5,7 @@ on:
|
||||
branches:
|
||||
- dev
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
@@ -23,6 +24,7 @@ env:
|
||||
jobs:
|
||||
affected:
|
||||
name: affected packages
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
outputs:
|
||||
e2e: ${{ steps.packages.outputs.app }}
|
||||
@@ -55,6 +57,7 @@ jobs:
|
||||
|
||||
unit:
|
||||
name: unit (${{ matrix.settings.name }})
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -140,6 +143,7 @@ jobs:
|
||||
|
||||
build:
|
||||
name: build (${{ matrix.settings.name }})
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -318,7 +322,7 @@ jobs:
|
||||
e2e:
|
||||
name: e2e (${{ matrix.os }})
|
||||
needs: [affected, e2e-suite]
|
||||
if: ${{ !cancelled() }}
|
||||
if: ${{ !cancelled() && !github.event.pull_request.draft }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
||||
Reference in New Issue
Block a user