Skip to content

Commit

Permalink
feat(tests): when running in ci call "go mod download" first
Browse files Browse the repository at this point in the history
  • Loading branch information
jochumdev committed Feb 23, 2025
1 parent fdd65d7 commit ff47c46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmarks/event/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ $NATS_SERVER -js 1>/dev/null 2>&1 &
nats_pid=$!
sleep 1

go mod download 1>/dev/null 2>&1

go run "${SCRIPT_DIR}/../cmd/handler/..." &
handler_pid=$!
sleep 1
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/rps/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -e; set -o pipefail

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

go mod download 1>/dev/null 2>&1

GOMAXPROCS=1 go run "${SCRIPT_DIR}/../cmd/orb-rps-server/..." 1>/dev/null 2>&1 &
server_pid=$!
sleep 1
Expand Down
2 changes: 2 additions & 0 deletions event/simple/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ $NATS_SERVER -js 1>/dev/null 2>&1 &
nats_pid=$!
sleep 1

go mod download 1>/dev/null 2>&1

go run "${SCRIPT_DIR}/../cmd/handler/..." &
handler_pid=$!
sleep 1
Expand Down

0 comments on commit ff47c46

Please sign in to comment.