From ccee64d5efecff55f37b86e2a7d4d170b4c97586 Mon Sep 17 00:00:00 2001 From: x1m3 Date: Tue, 3 Dec 2024 14:29:00 +0100 Subject: [PATCH] Golangci try to use go mod download --- .github/workflows/ci-lint.yaml | 8 ++++++++ .github/workflows/ci-test.yaml | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml index 9bc066e..a20788b 100644 --- a/.github/workflows/ci-lint.yaml +++ b/.github/workflows/ci-lint.yaml @@ -11,11 +11,19 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + - name: Install Go uses: actions/setup-go@v4 with: go-version-file: go.mod cache: true + + - name: Download Go modules + run: go mod tidy && go mod download + + - name: Clear module cache + run: go clean -modcache + - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/ci-test.yaml b/.github/workflows/ci-test.yaml index 0bcdf3f..ac5be3d 100644 --- a/.github/workflows/ci-test.yaml +++ b/.github/workflows/ci-test.yaml @@ -26,5 +26,11 @@ jobs: go-version-file: go.mod cache: true + - name: Download Go modules + run: go mod tidy && go mod download + + - name: Clear module cache + run: go clean -modcache + - name: Unit Tests - run: go test -v -race -timeout=60s ./... + run: go test -v -race -timeout=60s ./...