Skip to content

Commit

Permalink
Run make in parallel instead of adding cpus to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Madrigal committed Nov 8, 2024
1 parent 2f70834 commit 5a89801
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: go install golang.org/x/lint/golint@latest

- name: Test
run: make ci-test-no-generate
run: make ci-test-no-generate -j 4

x86-tests:
name: Unix x86 SDK tests
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
run: go install golang.org/x/lint/golint@latest

- name: Test
run: make unit
run: make unit -j 4

windows-tests:
name: Windows SDK Tests
Expand All @@ -93,4 +93,4 @@ jobs:
run: ./ci-find-smithy-go.sh

- name: Test
run: make vet build unit-test
run: make vet build unit-test -j 4
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ unit-race-modules-%:
&& go run . -p $(subst _,/,$(subst unit-race-modules-,,$@)) ${EACHMODULE_FLAGS} \
"go vet ${BUILD_TAGS} --all ./..." \
"go test ${BUILD_TAGS} ${RUN_NONE} ./..." \
"go test -timeout=2m ${UNIT_TEST_TAGS} -race -cpu=4 ./..."
"go test -timeout=2m ${UNIT_TEST_TAGS} -race -cpu=1 ./..."

unit-modules-%:
@# unit command that uses the pattern to define the root path that the
Expand Down

0 comments on commit 5a89801

Please sign in to comment.