Skip to content

Commit a0c1800

Browse files
committed
Add default, since inputs only get populated on workflow dispatches
1 parent 33be0c8 commit a0c1800

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Test with Mock Database
6767
shell: bash
6868
env:
69-
GOCOUNT: ${{ github.event.inputs.iterationCount }}
69+
GOCOUNT: ${{ github.event.inputs.iterationCount || 25 }}
7070
GOMAXPROCS: ${{ runner.os == 'Windows' && 1 || 2 }}
7171
run: gotestsum --junitfile="gotests.xml" --packages="./..." --
7272
-covermode=atomic -coverprofile="gotests.coverage"
@@ -82,9 +82,11 @@ jobs:
8282

8383
- name: Test with PostgreSQL Database
8484
if: runner.os == 'Linux'
85+
env:
86+
GOCOUNT: ${{ github.event.inputs.iterationCount || 25 }}
8587
run: DB=true gotestsum --junitfile="gotests.xml" --packages="./..." --
8688
-covermode=atomic -coverprofile="gotests.coverage" -timeout=3m
87-
-count=${{ github.event.inputs.iterationCount }} -race -parallel=2 -failfast
89+
-count=$GOCOUNT -race -parallel=2 -failfast
8890

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

0 commit comments

Comments
 (0)