Skip to content

Commit b08797a

Browse files
committed
Update ci setting
1 parent 8e56b66 commit b08797a

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

.github/workflows/ci.yml

+16-17
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,31 @@ name: Go
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
10-
1110
build:
1211
strategy:
1312
matrix:
14-
go-version: [1.16.x, 1.17.x]
13+
go-version: [1.20.x, 1.21.x]
1514
runs-on: ubuntu-latest
1615
steps:
17-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v2
1817

19-
- name: Set up Go
20-
uses: actions/setup-go@v2
21-
with:
22-
go-version: ${{ matrix.go-version }}
18+
- name: Set up Go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: ${{ matrix.go-version }}
2322

24-
- name: golangci-lint
25-
uses: golangci/golangci-lint-action@v2
26-
with:
27-
version: v1.29
23+
- name: golangci-lint
24+
uses: golangci/golangci-lint-action@v3
25+
with:
26+
version: latest
2827

29-
- name: Build
30-
run: go build -v ./...
28+
- name: Build
29+
run: go build -v ./...
3130

32-
- name: Test
33-
run: go test -v ./...
31+
- name: Test
32+
run: go test -v ./...

0 commit comments

Comments
 (0)