Skip to content

Commit e5c4e18

Browse files
committed
Add multiple parallel instances
1 parent a0c1800 commit e5c4e18

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
iterationCount:
1919
description: 'Iteration Count'
2020
required: false
21-
default: '25'
21+
default: '15'
2222

2323
# Cancel in-progress runs for pull requests when developers push
2424
# additional changes, and serialize builds in branches.
@@ -29,14 +29,17 @@ concurrency:
2929

3030
jobs:
3131
coder-test-stability:
32-
name: "test/go/stability/${{ matrix.os }}"
32+
name: "test/go/stability/${{ matrix.os }}/${{ matrix.instance }}"
3333
runs-on: ${{ matrix.os }}
3434
strategy:
3535
matrix:
3636
os:
3737
- ubuntu-latest
3838
- macos-latest
3939
- windows-2022
40+
instance:
41+
- 1
42+
- 2
4043
steps:
4144
- uses: actions/checkout@v2
4245

@@ -66,7 +69,7 @@ jobs:
6669
- name: Test with Mock Database
6770
shell: bash
6871
env:
69-
GOCOUNT: ${{ github.event.inputs.iterationCount || 25 }}
72+
GOCOUNT: ${{ github.event.inputs.iterationCount || 15 }}
7073
GOMAXPROCS: ${{ runner.os == 'Windows' && 1 || 2 }}
7174
run: gotestsum --junitfile="gotests.xml" --packages="./..." --
7275
-covermode=atomic -coverprofile="gotests.coverage"
@@ -83,7 +86,7 @@ jobs:
8386
- name: Test with PostgreSQL Database
8487
if: runner.os == 'Linux'
8588
env:
86-
GOCOUNT: ${{ github.event.inputs.iterationCount || 25 }}
89+
GOCOUNT: ${{ github.event.inputs.iterationCount || 15 }}
8790
run: DB=true gotestsum --junitfile="gotests.xml" --packages="./..." --
8891
-covermode=atomic -coverprofile="gotests.coverage" -timeout=3m
8992
-count=$GOCOUNT -race -parallel=2 -failfast

0 commit comments

Comments
 (0)