Skip to content

Commit

Permalink
workflow: allow to run parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Jan 18, 2022
1 parent e2a05d0 commit 49cae1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-for-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:

# Runs a single command using the runners shell, -p1 for `race: limit on 8128 simultaneously alive goroutines is exceeded, dying` at macos
- name: Run a test
run: go test -v -race -p 1 ./... -coverpkg=./... -covermode=atomic -coverprofile=./coverage.txt
run: go test -v -race ./... -coverpkg=./... -covermode=atomic -coverprofile=./coverage.txt
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

# Runs a single command using the runners shell, -p1 for `race: limit on 8128 simultaneously alive goroutines is exceeded, dying` at macos
- name: Run a test
run: go test -v -race -p 1 ./... -coverpkg=./... -covermode=atomic -coverprofile=./coverage.txt
run: go test -v -race ./... -coverpkg=./... -covermode=atomic -coverprofile=./coverage.txt

# Skip this step when running from forked repository (no write privileges)
- name: Publish the coverage
Expand Down
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"-race",
"-v",
"-cover",
"-p",
"1",
],
"go.testEnvVars": {
// "GOFLAGS":"-mod=vendor",
Expand Down

0 comments on commit 49cae1c

Please sign in to comment.