From e944694002b4cf2bc18c0ca923dd378eb49af49f Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Wed, 29 May 2024 00:13:46 +0000 Subject: [PATCH] ci: download mods ahead of running test This just keeps the module download output out of the `go test` output to keep the CI view a little cleaner. Signed-off-by: Brian Goff --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9284c416d..432226a0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,8 @@ jobs: # So we need to setup a custom builder. - name: Set up builder uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 + - name: download deps + run: go mod download - name: Run integaration tests run: go test -v -json ./test | go run ./cmd/test2json2gha - name: dump logs @@ -112,6 +114,8 @@ jobs: with: go-version: '1.21' cache: false + - name: download deps + run: go mod download - name: Run unit tests run: go test -v --test.short --json ./... | go run ./cmd/test2json2gha