diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 4c0f831..494ba59 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -13,19 +13,16 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v3 - with: - go-version: 1.17 - uses: actions/checkout@v3 - uses: golangci/golangci-lint-action@v3 with: - version: v1.45.2 + version: v1.49.0 test: name: Test runs-on: ubuntu-latest strategy: matrix: - go: [ '1.16.x', '1.17.x', '1.18.x' ] + go: [ '1.18.x', '1.19.x' ] steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 diff --git a/cmd/checkdigit/main.go b/cmd/checkdigit/main.go index 40826f2..740fed8 100644 --- a/cmd/checkdigit/main.go +++ b/cmd/checkdigit/main.go @@ -49,8 +49,7 @@ func main() { } } -//nolint: cyclop -func takeProvider(name string) checkdigit.Provider { +func takeProvider(name string) checkdigit.Provider { //nolint: cyclop switch strings.ToLower(strings.ReplaceAll(name, "-", "")) { case "luhn": return checkdigit.NewLuhn() diff --git a/go.mod b/go.mod index 1ff550b..354f0c8 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/osamingo/checkdigit -go 1.15 +go 1.18