Skip to content

Commit 2f0af38

Browse files
committed
update ci
1 parent 4c67d10 commit 2f0af38

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/golangci-lint.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ on:
88
- v*
99
branches:
1010
- master
11-
- v2
1211
pull_request:
1312
branches:
1413
- master
1514
permissions:
1615
contents: read
1716
jobs:
18-
golangci-lint:
17+
staticcheck:
1918
permissions:
2019
contents: read
2120
pull-requests: read
@@ -28,25 +27,27 @@ jobs:
2827
- name: Set up Golang
2928
uses: actions/setup-go@v3
3029
with:
31-
go-version: '1.20.x'
30+
go-version: "1.22.x"
3231
check-latest: true
3332
cache: true
3433

35-
- name: Run golangci-lint
36-
uses: golangci/[email protected]
34+
- run: "go test ./..."
35+
- run: "go vet ./..."
36+
- uses: dominikh/[email protected]
3737
with:
38-
version: latest
39-
args: --verbose
38+
version: "2023.1.7"
39+
install-go: false
40+
4041
test:
4142
strategy:
4243
fail-fast: false
4344
matrix:
4445
platform:
4546
- ubuntu
4647
go:
47-
- 20
48-
name: 'tests on ${{ matrix.platform }} | 1.${{ matrix.go }}.x'
49-
runs-on: ${{ matrix.platform }}-latest
48+
- 22
49+
name: "tests on ${{ matrix.platform }} | 1.${{ matrix.go }}.x"
50+
runs-on: "${{ matrix.platform }}-latest"
5051
steps:
5152
# Get the repositery's code
5253
- name: Checkout
@@ -55,8 +56,8 @@ jobs:
5556
- name: Set up Golang
5657
uses: actions/setup-go@v3
5758
with:
58-
go-version: '1.${{ matrix.go }}.x'
59+
go-version: "1.${{ matrix.go }}.x"
5960
cache: true
6061

6162
- name: Run tests
62-
run: go clean -testcache && go test -race -cover -covermode=atomic ./...
63+
run: go clean -testcache && go test -race -cover -covermode=atomic ./...

.github/workflows/gotest.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)