From 5736c56857bafd6d04d09cb2381593f928b27d86 Mon Sep 17 00:00:00 2001 From: Diego Ximenes Date: Mon, 22 Jul 2024 09:35:08 -0300 Subject: [PATCH] Fixes ci, runs gotestsum package by package --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05c3f3cbd3..c5dc37148b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,7 +160,12 @@ jobs: TEST_STATE_SCHEME: hash run: | packages=`go list ./...` - stdbuf -oL gotestsum --format short-verbose --packages="$packages" --rerun-fails=1 --no-color=false -- ./... -timeout 20m -parallel=8 -tags=cionly + for package in $packages; do + echo running tests for $package + if ! stdbuf -oL gotestsum --format short-verbose --packages="$package" --rerun-fails=1 --no-color=false -- -timeout 20m -tags=cionly; then + exit 1 + fi + done - name: run tests with race detection and path state scheme if: matrix.test-mode == 'race' @@ -181,7 +186,12 @@ jobs: TEST_STATE_SCHEME: hash run: | packages=`go list ./...` - stdbuf -oL gotestsum --format short-verbose --packages="$packages" --rerun-fails=1 --no-color=false -- ./... -race -timeout 30m -parallel=8 + for package in $packages; do + echo running tests for $package + if ! stdbuf -oL gotestsum --format short-verbose --packages="$package" --rerun-fails=1 --no-color=false -- -race -timeout 30m; then + exit 1 + fi + done - name: run redis tests if: matrix.test-mode == 'defaults'