Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
8 changes: 4 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ 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 ./...

- name: Lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.12.2
version: v2.13.2

- name: Format
run: |
Expand Down Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -91,18 +91,18 @@ 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 ./...

- name: Lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.12.2
version: v2.13.2

- name: Format
run: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ 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 ./...

- 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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 2 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 4 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=