Skip to content

Commit 92a4819

Browse files
fix(ci): clean cache (#4213)
* chore(ci): increase timeout * chore(ci): trap only tcp listeners, add timeout flag, add parallel flag * chore(ci): clean caches
1 parent 61ece69 commit 92a4819

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Run lints
3131
run: ./scripts/lint
3232
test:
33-
timeout-minutes: 10
33+
timeout-minutes: 30
3434
name: test
3535
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
3636
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

scripts/test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function prism_is_running() {
1414
}
1515

1616
kill_server_on_port() {
17-
pids=$(lsof -t -i tcp:"$1" || echo "")
17+
pids=$(lsof -t -i tcp:"$1" -sTCP:LISTEN 2>/dev/null || echo "")
1818
if [ "$pids" != "" ]; then
1919
kill "$pids"
2020
echo "Stopped $pids."
@@ -53,4 +53,5 @@ else
5353
fi
5454

5555
echo "==> Running tests"
56-
go test ./... "$@"
56+
go clean -cache -testcache -modcache
57+
go test -timeout 30m -p 4 ./... "$@"

0 commit comments

Comments
 (0)