diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5436f7b..881cb52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,20 +25,20 @@ jobs: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: "go.mod" - name: Import GPG key id: import_gpg - uses: crazy-max/ghaction-import-gpg@v5.0.0 + uses: crazy-max/ghaction-import-gpg@v6 with: # These secrets will need to be configured for the repository: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: version: latest args: release --rm-dist diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84bdee3..a451c8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,9 +13,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - version: v1.54 + version: v1.59 args: --timeout=10m check: runs-on: ubuntu-latest @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: "go.mod" diff --git a/.goreleaser.yml b/.goreleaser.yml index 77d6355..bd70420 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,7 @@ # Visit https://goreleaser.com for documentation on how to customize this # behavior. +version: 2 +project_name: terraform-provider-looker before: hooks: # this is just an example and not a requirement for provider building/publishing @@ -14,7 +16,9 @@ builds: flags: - -trimpath ldflags: - - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' + - -s -w + - -X main.version={{.Version}} + - -X main.commit={{.Commit}} goos: - freebsd - windows diff --git a/go.mod b/go.mod index 923c3ac..2d503d7 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hirosassa/terraform-provider-looker -go 1.20 +go 1.22 require ( github.com/hashicorp/terraform-plugin-docs v0.7.0