Skip to content

Commit 5b867a1

Browse files
committed
Add input parameter for iterationCount
1 parent 4afef61 commit 5b867a1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/coder-test-stability.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
paths:
1515
- .github/workflows/coder-test-stability.yaml
1616
workflow_dispatch:
17+
inputs:
18+
iterationCount:
19+
description: 'Iteration Count'
20+
required: false
21+
default: '25'
1722

1823
# Cancel in-progress runs for pull requests when developers push
1924
# additional changes, and serialize builds in branches.
@@ -61,7 +66,7 @@ jobs:
6166
- name: Test with Mock Database
6267
shell: bash
6368
env:
64-
GOCOUNT: 25
69+
GOCOUNT: ${{ github.event.inputs.logLevel }}
6570
GOMAXPROCS: ${{ runner.os == 'Windows' && 1 || 2 }}
6671
run: gotestsum --junitfile="gotests.xml" --packages="./..." --
6772
-covermode=atomic -coverprofile="gotests.coverage"
@@ -79,7 +84,7 @@ jobs:
7984
if: runner.os == 'Linux'
8085
run: DB=true gotestsum --junitfile="gotests.xml" --packages="./..." --
8186
-covermode=atomic -coverprofile="gotests.coverage" -timeout=3m
82-
-count=25 -race -parallel=2 -failfast
87+
-count=${{ github.event.inputs.logLevel }} -race -parallel=2 -failfast
8388

8489
- name: Upload DataDog Trace
8590
if: (success() || failure()) && github.actor != 'dependabot[bot]' && runner.os == 'Linux'

0 commit comments

Comments
 (0)