diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 83cce358..c92a32ec 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,4 +1,4 @@ -name: "Unit/Coverage Tests" +name: "Unit/Coverage Tests" on: pull_request_target: @@ -16,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: 1.19 + go-version: "1.20" - name: Run unit tests and coverage test id: test-coverage @@ -28,10 +28,10 @@ jobs: if: always() run: | CONTENT=$(cat output.txt) - CONTENT="${CONTENT//'%'/'%25'}" - CONTENT="${CONTENT//$'\n'/'%0A'}" - CONTENT="${CONTENT//$'\r'/'%0D'}" - echo "::set-output name=content::$CONTENT" + CONTENT="${CONTENT//'%'/'%25'}" + CONTENT="${CONTENT//$'\n'/'%0A'}" + CONTENT="${CONTENT//$'\r'/'%0D'}" + echo "::set-output name=content::$CONTENT" comment: runs-on: ubuntu-latest diff --git a/.github/workflows/go-checks.yml b/.github/workflows/go-checks.yml index db5e15c8..b5fd2351 100644 --- a/.github/workflows/go-checks.yml +++ b/.github/workflows/go-checks.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | go version - go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2 + go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3 - name: Run Lint run: | golangci-lint run driver/... diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a8fbce2..794b4ee1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@v1 - uses: actions/setup-go@v1 with: - go-version: 1.19 + go-version: "1.20" - name: Get the version id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index eba59dfd..ac871988 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -53,7 +53,7 @@ jobs: name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.19 + go-version: "1.20" - name: Docker Login env: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 16a18c81..69dfb716 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.19 + - name: Set up Go 1.20 uses: actions/setup-go@v1 with: - go-version: 1.19 + go-version: "1.20" id: go - name: Check out code into the Go module directory diff --git a/.golangci.yaml b/.golangci.yaml index 45ff5457..b838c927 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -64,7 +64,6 @@ linters: disable-all: true enable: - bodyclose - - depguard - dogsled - dupl - errcheck @@ -97,6 +96,7 @@ linters: - whitespace # don't enable: + # - depguard # - asciicheck # - scopelint # - gochecknoglobals diff --git a/driver/driver_test.go b/driver/driver_test.go index 5306e508..22d37053 100644 --- a/driver/driver_test.go +++ b/driver/driver_test.go @@ -15,7 +15,7 @@ import ( ) func init() { //nolint:gochecknoinits - rand.Seed(time.Now().UnixNano()) + rand.New(rand.NewSource(time.Now().UnixNano())) } func TestDriverSuite(t *testing.T) { diff --git a/go.mod b/go.mod index 8a35b2c1..5b1bfd96 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vultr/vultr-csi -go 1.19 +go 1.20 require ( github.com/container-storage-interface/spec v1.7.0