Skip to content

Commit dd278d3

Browse files
committed
Stop caching gotestsum
1 parent 9377eaf commit dd278d3

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

.github/actions/setup-test/action.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,3 @@ runs:
2828
sudo dpkg-reconfigure -f noninteractive man-db
2929
sudo apt-get install -y --no-upgrade expect
3030
shell: bash
31-
- name: Cache gotestsum
32-
id: cache-gotestsum
33-
uses: actions/cache@v4
34-
with:
35-
path: ~/go/bin/gotestsum
36-
key: gotestsum-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/buildtools/versions') }}
37-
- name: Install gotestsum
38-
if: steps.cache-gotestsum.outputs.cache-hit != 'true'
39-
run: ./scripts/buildtools/install_buildtools.sh -o "gotest.tools/gotestsum"
40-
shell: bash

.github/workflows/ci-nightly.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
- name: Run tests
103103
run: |
104104
./scripts/configure_dev.sh
105-
./scripts/buildtools/install_buildtools.sh -o "gotest.tools/gotestsum"
106105
PACKAGES="$(go list ./... | grep -v /go-algorand/test/)"
107106
export PACKAGE_NAMES=$(echo $PACKAGES | tr -d '\n')
108107
mkdir -p test_results/${{ matrix.platform }}_test_nightly/${PARTITION_ID}
@@ -184,7 +183,6 @@ jobs:
184183
- name: Run integration tests
185184
run: |
186185
./scripts/configure_dev.sh
187-
./scripts/buildtools/install_buildtools.sh -o "gotest.tools/gotestsum"
188186
mkdir -p ~/test_results/${{ matrix.platform }}_integration_nightly/${PARTITION_ID}
189187
TEST_RESULTS=~/test_results/${{ matrix.platform }}_integration_nightly/${PARTITION_ID} \
190188
test/scripts/run_integration_tests.sh
@@ -241,7 +239,6 @@ jobs:
241239
- name: Run E2E expect tests
242240
run: |
243241
scripts/configure_dev.sh
244-
scripts/buildtools/install_buildtools.sh -o "gotest.tools/gotestsum"
245242
mkdir -p ~/test_results/${{ matrix.platform }}_e2e_expect_nightly/${PARTITION_ID}
246243
TEST_RESULTS=~/test_results/${{ matrix.platform }}_e2e_expect_nightly/${PARTITION_ID} \
247244
test/scripts/run_integration_tests.sh
@@ -308,7 +305,6 @@ jobs:
308305
- name: Run E2E subs tests
309306
run: |
310307
scripts/configure_dev.sh
311-
scripts/buildtools/install_buildtools.sh -o "gotest.tools/gotestsum"
312308
mkdir -p ~/test_results/${{ matrix.platform }}_e2e_subs_nightly
313309
TEST_RESULTS=~/test_results/${{ matrix.platform }}_e2e_subs_nightly \
314310
test/scripts/run_integration_tests.sh

test/scripts/e2e_go_tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ set -o pipefail
77

88
export GOPATH=$(go env GOPATH)
99

10-
# Needed for now because circleci doesn't use makefile yet
11-
TEST_RESULTS=${TEST_RESULTS:="$(pwd)"}
12-
GOTESTCOMMAND=${GOTESTCOMMAND:="go tool -modfile=${REPO_ROOT}/tool.mod gotestsum --format testname --junitfile ${TEST_RESULTS}/results.xml --jsonfile ${TEST_RESULTS}/testresults.json --"}
13-
1410
# If one or more -t <pattern> are specified, use GOTESTCOMMAND -run <pattern> for each
1511

1612
TESTPATTERNS=()
@@ -48,6 +44,10 @@ fi
4844
# Anchor our repo root reference location
4945
REPO_ROOT="$( cd "$(dirname "$0")" ; pwd -P )"/../..
5046

47+
# Needed for now because circleci doesn't use makefile yet
48+
TEST_RESULTS=${TEST_RESULTS:="$(pwd)"}
49+
GOTESTCOMMAND=${GOTESTCOMMAND:="go tool -modfile=${REPO_ROOT}/tool.mod gotestsum --format testname --junitfile ${TEST_RESULTS}/results.xml --jsonfile ${TEST_RESULTS}/testresults.json --"}
50+
5151
if [ "${NORACEBUILD}" = "" ]; then
5252
# Need bin-race binaries for e2e tests
5353
if [ "${NO_BUILD}" != "true" ]; then

0 commit comments

Comments
 (0)