diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index a50ac208..03379234 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -49,7 +49,7 @@ jobs: wildcard=".*" echo "version=${orginal_version%"$wildcard"}" >> "$GITHUB_OUTPUT" - run: go tool cover -html=coverage.out -o coverage.html - - uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5 + - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 with: name: go-${{ matrix.go-version }}-terraform-${{ steps.tf_version.outputs.version }}-coverage path: coverage.html diff --git a/.golangci.yml b/.golangci.yml index bd09eed5..78387e63 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -22,7 +22,7 @@ linters: - unconvert - unparam - unused - - vet + - govet run: # Prevent false positive timeouts in CI diff --git a/helper/acctest/random.go b/helper/acctest/random.go index 607b1cef..102c85dd 100644 --- a/helper/acctest/random.go +++ b/helper/acctest/random.go @@ -34,9 +34,9 @@ func RandomWithPrefix(name string) string { return fmt.Sprintf("%s-%d", name, RandInt()) } -// RandIntRange returns a random integer between min (inclusive) and max (exclusive) -func RandIntRange(min int, max int) int { - return rand.Intn(max-min) + min +// RandIntRange returns a random integer between minInt (inclusive) and maxInt (exclusive) +func RandIntRange(minInt int, maxInt int) int { + return rand.Intn(maxInt-minInt) + minInt } // RandString generates a random alphanumeric string of the length specified