Skip to content

Commit

Permalink
Fixes ci, runs gotestsum package by package
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Jul 22, 2024
1 parent 5993bc8 commit 5736c56
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 5736c56

Please sign in to comment.