Skip to content

Commit a7bd937

Browse files
committed
Update support Go version
1 parent 1de7283 commit a7bd937

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.github/workflows/actions.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,16 @@ jobs:
1313
name: Lint
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/setup-go@v3
17-
with:
18-
go-version: 1.17
1916
- uses: actions/checkout@v3
2017
- uses: golangci/golangci-lint-action@v3
2118
with:
22-
version: v1.45.2
19+
version: v1.49.0
2320
test:
2421
name: Test
2522
runs-on: ubuntu-latest
2623
strategy:
2724
matrix:
28-
go: [ '1.16.x', '1.17.x', '1.18.x' ]
25+
go: [ '1.18.x', '1.19.x' ]
2926
steps:
3027
- uses: actions/checkout@v3
3128
- uses: actions/setup-go@v3

cmd/checkdigit/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ func main() {
4949
}
5050
}
5151

52-
//nolint: cyclop
53-
func takeProvider(name string) checkdigit.Provider {
52+
func takeProvider(name string) checkdigit.Provider { //nolint: cyclop
5453
switch strings.ToLower(strings.ReplaceAll(name, "-", "")) {
5554
case "luhn":
5655
return checkdigit.NewLuhn()

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/osamingo/checkdigit
22

3-
go 1.15
3+
go 1.18

0 commit comments

Comments
 (0)