Skip to content

Commit

Permalink
Update support Go version
Browse files Browse the repository at this point in the history
  • Loading branch information
osamingo committed Oct 8, 2022
1 parent 1de7283 commit a7bd937
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions cmd/checkdigit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/osamingo/checkdigit

go 1.15
go 1.18

0 comments on commit a7bd937

Please sign in to comment.