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 ./...