diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 41f6e6b..a850a6c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -15,7 +15,7 @@ A clear and concise description of what you expected to happen. **Desktop (please complete the following information):** - OS: [e.g. iOS] - - Go version: [e.g. 1.26.6] + - Go version: [e.g. 1.27.0] **Additional context** Add any other context about the problem here. diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 301a1de..c717ac1 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -16,10 +16,10 @@ jobs: with: fetch-depth: 0 - - name: Set up Go 1.26.6 + - name: Set up Go 1.27.0 uses: actions/setup-go@v7 with: - go-version: '1.26.6' + go-version: '1.27.0' - name: Build run: go build -v ./... @@ -27,7 +27,7 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v9 with: - version: v2.12.2 + version: v2.13.2 - name: Format run: | @@ -57,7 +57,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - go-version: ['1.25.10', '1.26.6'] + go-version: ['1.25.10', '1.26.6', '1.27.0'] steps: - name: Git checkout diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9199616..8c46bb7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,10 +15,10 @@ jobs: - name: Git checkout uses: actions/checkout@v7 - - name: Set up Go 1.26.6 + - name: Set up Go 1.27.0 uses: actions/setup-go@v7 with: - go-version: '1.26.6' + go-version: '1.27.0' - name: Validate tag is semver run: | @@ -63,7 +63,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - go-version: ['1.25.10', '1.26.6'] + go-version: ['1.25.10', '1.26.6', '1.27.0'] steps: - name: Git checkout @@ -91,10 +91,10 @@ jobs: with: fetch-depth: 0 - - name: Set up Go 1.26.6 + - name: Set up Go 1.27.0 uses: actions/setup-go@v7 with: - go-version: '1.26.6' + go-version: '1.27.0' - name: Build run: go build -v ./... @@ -102,7 +102,7 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v9 with: - version: v2.12.2 + version: v2.13.2 - name: Format run: | @@ -133,10 +133,10 @@ jobs: with: fetch-depth: 0 - - name: Set up Go 1.26.6 + - name: Set up Go 1.27.0 uses: actions/setup-go@v7 with: - go-version: '1.26.6' + go-version: '1.27.0' - name: Verify module & generate checksums run: | @@ -172,10 +172,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.26.6 + - name: Set up Go 1.27.0 uses: actions/setup-go@v7 with: - go-version: '1.26.6' + go-version: '1.27.0' - name: Notify Go module proxy run: | diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index d534860..ccf3f91 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -33,10 +33,10 @@ jobs: ref: ${{ steps.pr.outputs.head_sha }} fetch-depth: 0 - - name: Set up Go 1.26.6 + - name: Set up Go 1.27.0 uses: actions/setup-go@v7 with: - go-version: '1.26.6' + go-version: '1.27.0' - name: Build run: go build -v ./... @@ -44,7 +44,7 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v9 with: - version: v2.12.2 + version: v2.13.2 - name: Test run: go test -p 1 -v ./... -coverprofile="coverage.out" diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index ffcd41f..735208a 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -7,7 +7,7 @@ on: go: description: 'Go version' required: true - default: '1.26.6' + default: '1.27.0' os: description: 'Operating System (ubuntu-20.04, ubuntu-latest, windows-latest)' required: true @@ -40,7 +40,7 @@ jobs: if: ${{ github.event.inputs.skip-lint != 'true' }} uses: golangci/golangci-lint-action@v9 with: - version: v2.12.2 + version: v2.13.2 - name: Format run: | diff --git a/Makefile b/Makefile index 877c0e3..d9b114b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: test fmt cover cover-html lint lint-install godoc-install docs vulncheck vulncheck-install -GOLANGCI_LINT_VERSION=v2.12.2 +GOLANGCI_LINT_VERSION=v2.13.2 GOVULNCHECK_VERSION=v1.7.0 test-clean: diff --git a/go.mod b/go.mod index b2ed512..018a66d 100644 --- a/go.mod +++ b/go.mod @@ -2,10 +2,6 @@ module github.com/switcherapi/switcher-client-go go 1.25 -require github.com/stretchr/testify v1.11.1 +require github.com/stretchr/testify v1.12.1 -require ( - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect -) +require go.yaml.in/yaml/v3 v3.0.5 // indirect diff --git a/go.sum b/go.sum index c4c1710..c233683 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,4 @@ -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= -github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= -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= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=