From b1d7fef98700854d814a492a20c30dc77f6a8927 Mon Sep 17 00:00:00 2001 From: Nicholas Wiersma Date: Sun, 11 Aug 2024 10:08:41 +0200 Subject: [PATCH] chore: bump deps (#8) --- .github/workflows/release.yml | 8 ++++---- .github/workflows/test.yml | 20 ++++++++++++++------ .golangci.yml | 17 +++-------------- .goreleaser.yml | 1 + go.mod | 6 +++--- go.sum | 8 ++++---- 6 files changed, 29 insertions(+), 31 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc6517e..6416584 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest env: - GO_VERSION: "1.21" + GO_VERSION: "1.22" steps: - name: Install Go if: success() - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Cache Go modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -30,7 +30,7 @@ jobs: ${{ runner.os }}-go- - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: version: latest args: release --clean diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2da7c90..679cb23 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,13 +12,13 @@ jobs: env: GOOS: js GOARCH: wasm - GO_VERSION: "1.21" - GOLANGCI_LINT_VERSION: v1.55.0 + GO_VERSION: "1.22" + GOLANGCI_LINT_VERSION: v1.59.1 steps: - name: Install Go if: success() - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} @@ -26,7 +26,7 @@ jobs: uses: actions/checkout@v4 - name: Cache Go modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -34,7 +34,15 @@ jobs: ${{ runner.os }}-go- - name: Run linter - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: version: ${{ env.GOLANGCI_LINT_VERSION }} - skip-pkg-cache: true + skip-cache: true + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + version: latest + args: release --clean --snapshot + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.golangci.yml b/.golangci.yml index af23fde..7d1c638 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,21 +10,10 @@ linters: enable-all: true disable: - interfacebloat - - sqlclosecheck # not relevant (SQL) - - rowserrcheck # not relevant (SQL) - - execinquery # not relevant (SQL) - - interfacer # deprecated - - scopelint # deprecated - - maligned # deprecated - - golint # deprecated - - deadcode # deprecated - - exhaustivestruct # deprecated - - ifshort # deprecated - - nosnakecase # deprecated - - structcheck # deprecated - - varcheck # deprecated + - execinquery # deprecated - cyclop # duplicate of gocyclo - depguard + - err113 - exhaustive - exhaustruct - forcetypeassert @@ -33,9 +22,9 @@ linters: - gochecknoinits - gocognit - gocyclo - - goerr113 - gomnd - ireturn + - mnd - nestif - nlreturn - nonamedreturns diff --git a/.goreleaser.yml b/.goreleaser.yml index 0c28fa6..e8dfeb3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 project_name: solar dist: dist diff --git a/go.mod b/go.mod index 475d174..b7764bd 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ module github.com/glasslabs/solar -go 1.21.3 +go 1.22 require ( - github.com/glasslabs/client-go v0.1.0 + github.com/glasslabs/client-go v0.2.0 github.com/pawal/go-hass v0.0.0-20230221123149-b1b116a7432d ) require ( gopkg.in/yaml.v3 v3.0.1 // indirect - honnef.co/go/js/dom/v2 v2.0.0-20230808055721-96db8f4d5e3b // indirect + honnef.co/go/js/dom/v2 v2.0.0-20231112215516-51f43a291193 // indirect ) diff --git a/go.sum b/go.sum index 1cc5741..e21359b 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,10 @@ -github.com/glasslabs/client-go v0.1.0 h1:a2Ob6EMyglz+Jy53diQv62ZCBVA4/BONF3e2APcnlr0= -github.com/glasslabs/client-go v0.1.0/go.mod h1:CpO4gMLfNrbhZQsNlNjq1KcGUAk35eCWj35YBb2xccw= +github.com/glasslabs/client-go v0.2.0 h1:n1w7pC3I3t7Lru1yJbmuhIjuPCprefhAF1V2jjvq/Bs= +github.com/glasslabs/client-go v0.2.0/go.mod h1:IyhCNLlDg7KolU1WRHGXbfTbT0zLvxtrefoQlby+p9U= github.com/pawal/go-hass v0.0.0-20230221123149-b1b116a7432d h1:8tAKssHhfrcb3zHE/EpS+p3fYUk4RLROOGoPba6/tHs= github.com/pawal/go-hass v0.0.0-20230221123149-b1b116a7432d/go.mod h1:dEToidnncZjw4CqHXSpE0KI17uDI86Gt0Gfp5PEJKyA= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/js/dom/v2 v2.0.0-20230808055721-96db8f4d5e3b h1:XOEHdukvK2DAtBpN8kQbuj6UIK5dz9DLvqc51o6w4L0= -honnef.co/go/js/dom/v2 v2.0.0-20230808055721-96db8f4d5e3b/go.mod h1:+JtEcbinwR4znM12aluJ3WjKgvhDPKPQ8hnP4YM+4jI= +honnef.co/go/js/dom/v2 v2.0.0-20231112215516-51f43a291193 h1:qc3CbLs/1Tb3N7yIKKph/UbUoyI8YQfTF1apIvqX/I8= +honnef.co/go/js/dom/v2 v2.0.0-20231112215516-51f43a291193/go.mod h1:+JtEcbinwR4znM12aluJ3WjKgvhDPKPQ8hnP4YM+4jI=