Skip to content

Commit

Permalink
Explicitly do go mod download in CI (#4741)
Browse files Browse the repository at this point in the history
This separates the step of downloading dependencies so it doesn't affect
the timeout for a single step.

Signed-off-by: Juan Antonio Osorio <[email protected]>
  • Loading branch information
JAORMX authored Oct 14, 2024
1 parent ba60b09 commit b909440
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit b909440

Please sign in to comment.