Skip to content

Commit

Permalink
set GOMAXPROCS
Browse files Browse the repository at this point in the history
  • Loading branch information
samanhappy committed Aug 29, 2024
1 parent 7e9413c commit 1eba891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- name: Go Get dependencies
run: go get -v -t -d ./...
- name: Go Test
env:
GOMAXPROCS: 1
run: make test TEST_FLAGS="-coverprofile=coverage.txt -covermode=atomic"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.5.0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ${TARGET}: ${SOURCE}
build: all

test:
go test -gcflags=-l -cover -race ${TEST_FLAGS} -v -p 1 ./...
go test -gcflags=-l -cover -race ${TEST_FLAGS} -v ./...

docker:
sudo DOCKER_BUILDKIT=1 docker build -t megaease/easeprobe -f ${MKFILE_DIR}/resources/Dockerfile ${MKFILE_DIR}
Expand Down

0 comments on commit 1eba891

Please sign in to comment.