Skip to content

Commit 0edcccf

Browse files
[ci] Skip for CI checks when doing vercel backend testing only (#1063)
1 parent 89f9630 commit 0edcccf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/benchmarks.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
pr-comment-start:
2323
name: Create PR Comment
2424
runs-on: ubuntu-latest
25-
if: github.event_name == 'pull_request'
25+
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'workflow-server-test')
2626
timeout-minutes: 2
2727

2828
steps:
@@ -119,6 +119,7 @@ jobs:
119119
build:
120120
name: Build Packages
121121
runs-on: ubuntu-latest
122+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'workflow-server-test') }}
122123
timeout-minutes: 30
123124
env:
124125
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
@@ -148,6 +149,7 @@ jobs:
148149
name: Benchmark Local (${{ matrix.app }})
149150
runs-on: ubuntu-latest
150151
needs: build
152+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'workflow-server-test') }}
151153
timeout-minutes: 30
152154
strategy:
153155
fail-fast: false
@@ -228,6 +230,7 @@ jobs:
228230
name: Benchmark Postgres (${{ matrix.app }})
229231
runs-on: ubuntu-latest
230232
needs: build
233+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'workflow-server-test') }}
231234
timeout-minutes: 30
232235
strategy:
233236
fail-fast: false
@@ -329,6 +332,7 @@ jobs:
329332
name: Benchmark Vercel (${{ matrix.app.name }})
330333
runs-on: ubuntu-latest
331334
needs: build
335+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'workflow-server-test') }}
332336
timeout-minutes: 60
333337
strategy:
334338
fail-fast: false
@@ -421,6 +425,7 @@ jobs:
421425
getCommunityWorldsMatrix:
422426
name: Get Community Worlds Matrix
423427
runs-on: ubuntu-latest
428+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'workflow-server-test') }}
424429
outputs:
425430
matrix: ${{ steps.set-matrix.outputs.matrix }}
426431
steps:
@@ -437,6 +442,7 @@ jobs:
437442

438443
benchmark-community:
439444
name: Benchmark Community World (${{ matrix.world.name }})
445+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'workflow-server-test') }}
440446
needs: [build, getCommunityWorldsMatrix]
441447
strategy:
442448
fail-fast: false

0 commit comments

Comments
 (0)