From b9094402b2f15df261f2b8dda237800566434003 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Mon, 14 Oct 2024 14:00:52 +0300 Subject: [PATCH] Explicitly do `go mod download` in CI (#4741) This separates the step of downloading dependencies so it doesn't affect the timeout for a single step. Signed-off-by: Juan Antonio Osorio --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d8ab0389e..5501a0d4ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,6 +30,8 @@ jobs: docker run -d --restart=always -p "127.0.0.1:5000:5000" --network bridge --name registry \ registry:2 fi + - name: Fetch go mod dependencies + run: go mod download # Run the tests - name: Run tests env: @@ -51,6 +53,8 @@ jobs: uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 - name: Copy config file run: cp config/server-config.yaml.example ./server-config.yaml + - name: Fetch go mod dependencies + run: go mod download - name: Run coverage run: make cover - name: Try converting to LCOV