Skip to content

Commit 3b1d25e

Browse files
committed
fix: reduce test impact for draft prs
Signed-off-by: Sam Gammon <[email protected]>
1 parent bf1b6e3 commit 3b1d25e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,10 @@ jobs:
154154
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
155155

156156
test-debug:
157-
name: "Test: Debug"
157+
name: "Test: Basic"
158158
runs-on: ubuntu-latest
159159
env:
160-
NODE_DEBUG: 'http'
161160
ACTIONS_STEP_DEBUG: 'true'
162-
ACTIONS_RUNNER_DEBUG: 'true'
163161
steps:
164162
- name: Harden Runner
165163
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
@@ -181,6 +179,7 @@ jobs:
181179
test-no-token:
182180
name: "Test: No Token"
183181
runs-on: ubuntu-latest
182+
if: github.event.pull_request.draft == 'false'
184183
permissions:
185184
id-token: none
186185
steps:
@@ -204,6 +203,7 @@ jobs:
204203
test-action:
205204
name: "Test: Install (${{ matrix.label }})"
206205
runs-on: ${{ matrix.os }}
206+
if: github.event.pull_request.draft == 'false'
207207
permissions:
208208
id-token: write
209209
strategy:
@@ -239,6 +239,7 @@ jobs:
239239
test-path:
240240
name: "Test: Path (${{ matrix.label }})"
241241
runs-on: ${{ matrix.os }}
242+
if: github.event.pull_request.draft == 'false'
242243
strategy:
243244
fail-fast: false
244245
matrix:
@@ -275,6 +276,7 @@ jobs:
275276
test-smoketest:
276277
name: "Test: Smoke Test (${{ matrix.label }})"
277278
runs-on: ${{ matrix.os }}
279+
if: github.event.pull_request.draft == 'false'
278280
strategy:
279281
fail-fast: false
280282
matrix:
@@ -328,6 +330,7 @@ jobs:
328330
test-noagent:
329331
name: "Test: No Agent (${{ matrix.label }})"
330332
runs-on: ${{ matrix.os }}
333+
if: github.event.pull_request.draft == 'false'
331334
strategy:
332335
fail-fast: false
333336
matrix:
@@ -366,6 +369,7 @@ jobs:
366369
test-agent:
367370
name: "Test: Agent (${{ matrix.label }})"
368371
runs-on: ${{ matrix.os }}
372+
if: github.event.pull_request.draft == 'false'
369373
timeout-minutes: 5
370374
strategy:
371375
fail-fast: false

0 commit comments

Comments
 (0)