Skip to content

Commit c529a10

Browse files
authored
ci(repo): run full CI on draft PRs (#8639)
1 parent a6de7da commit c529a10

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

.changeset/ci-run-on-drafts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/ci.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
4848
pre-checks:
4949
needs: [check-permissions]
50-
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
5150
name: Formatting | Dedupe | Changeset
5251
runs-on: "blacksmith-8vcpu-ubuntu-2204"
5352
defaults:
@@ -84,7 +83,7 @@ jobs:
8483
run: pnpm format:check
8584

8685
- name: Require Changeset
87-
if: ${{ !(github.event_name == 'merge_group') }}
86+
if: ${{ github.event_name != 'merge_group' && github.event.pull_request.draft == false }}
8887
run: |
8988
if [[ "${{ github.event.pull_request.user.login }}" = "clerk-cookie" || "${{ github.event.pull_request.user.login }}" = "renovate[bot]" ]]; then
9089
echo 'Skipping';
@@ -95,7 +94,6 @@ jobs:
9594
9695
build-packages:
9796
needs: [check-permissions]
98-
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
9997
name: Build Packages
10098
runs-on: "blacksmith-8vcpu-ubuntu-2204"
10199
permissions:
@@ -142,7 +140,6 @@ jobs:
142140

143141
static-analysis:
144142
needs: [check-permissions, build-packages]
145-
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
146143
name: Static analysis
147144
permissions:
148145
contents: read
@@ -207,7 +204,6 @@ jobs:
207204

208205
unit-tests:
209206
needs: [check-permissions, build-packages]
210-
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
211207
name: Unit Tests (${{ matrix.filter-label }})
212208
permissions:
213209
contents: read
@@ -286,9 +282,7 @@ jobs:
286282

287283
integration-tests:
288284
needs: [check-permissions, build-packages]
289-
if: >-
290-
${{ (github.event_name != 'pull_request' || github.event.pull_request.draft == false)
291-
&& (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
285+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
292286
name: Integration Tests (${{ matrix.test-name }}, ${{ matrix.test-project }}${{ matrix.next-version && format(', {0}', matrix.next-version) || '' }})
293287
permissions:
294288
contents: read
@@ -496,7 +490,6 @@ jobs:
496490

497491
pkg-pr-new:
498492
name: Publish with pkg-pr-new
499-
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
500493
needs: [check-permissions, build-packages]
501494
runs-on: "blacksmith-8vcpu-ubuntu-2204"
502495
defaults:

0 commit comments

Comments
 (0)