Skip to content

Commit 13f054c

Browse files
authored
Merge pull request #427 from persistenceOne/puneet/deps
chore: update deps
2 parents ea301c5 + 09dd08a commit 13f054c

File tree

18 files changed

+315
-591
lines changed

18 files changed

+315
-591
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616

1717
steps:
1818
- name: Set up Go 1.x
19-
uses: actions/setup-go@v2
19+
uses: actions/setup-go@v5
2020
with:
21-
go-version: 1.20.4
21+
go-version: 1.23
2222
id: go
2323

2424
- name: Check out code into the Go module directory
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
- name: Get dependencies
2828
run: |

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
name: lint
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/setup-go@v3
16+
- uses: actions/setup-go@v5
1717
with:
18-
go-version: 1.20.4
18+
go-version: 1.23
1919

20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121

2222
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v3
23+
uses: golangci/golangci-lint-action@v8
2424
with:
25-
version: v1.52.2
25+
version: v2.1
2626
args: --timeout=3m

.github/workflows/proto-registry.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
push:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- uses: bufbuild/buf-setup-action@v1.9.0
1717
- uses: bufbuild/buf-push-action@v1
1818
with:

.github/workflows/sims.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/setup-go@v3
13+
- uses: actions/setup-go@v5
1414
with:
15-
go-version: 1.20.4
15+
go-version: 1.23
1616

17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
- name: build
2020
run: |

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/setup-go@v3
16+
- uses: actions/setup-go@v5
1717
with:
18-
go-version: 1.20.4
18+
go-version: 1.23
1919

20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121

2222
- name: test & coverage report creation
2323
run: |
@@ -32,11 +32,11 @@ jobs:
3232
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
3333
excludelist+=" $(find ./ -type f -name '*.pb.go')"
3434
excludelist+=" $(find ./ -type f -name '*.pb.gw.go')"
35-
excludelist+=" $(find ./ -type f -path './tests/mocks/*.go')"
36-
excludelist+=" $(find ./ -type f -path './x/interchainquery/*.go')"
37-
excludelist+=" $(find ./ -type f -path './x/oracle/*.go')"
35+
excludelist+=" $(find ./ -type f -path './tests/*.go')"
36+
excludelist+=" $(find ./ -type f -path './x/interchainquery/*')"
37+
excludelist+=" $(find ./ -type f -path './x/oracle/*')"
3838
for filename in ${excludelist}; do
39-
filename=$(echo $filename | sed 's/^./github.com\/persistenceOne\/persistence-sdk/g')
39+
filename=$(echo $filename | sed 's/^.\///g')
4040
echo "Excluding ${filename} from coverage report..."
4141
sed -i "/$(echo $filename | sed 's/\//\\\//g')/d" ./coverage.out
4242
done

.golangci.yml

Lines changed: 16 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,23 @@
1+
version: "2"
2+
13
run:
24
tests: false
3-
skip-files:
4-
- schema/applications/base/application.go
5-
- utilities/cuckoo/filter.go
6-
- x/lsnative/distribution/types/distribution.pb.go
7-
skip-dirs:
8-
- x/lsnative
9-
- ibctesting
5+
106
linters:
11-
disable-all: false
7+
default: none
8+
enable:
9+
- errcheck # unchecked errors
10+
- govet # catches suspicious code constructs
11+
- staticcheck # advanced correctness checks
12+
- misspell # catch typos
13+
- ineffassign # detect inefficient assignments
14+
- unused # unused variables, funcs, types
15+
settings:
16+
misspell:
17+
locale: US
18+
19+
formatters:
1220
enable:
13-
- bodyclose
14-
- deadcode
15-
- depguard
16-
- dogsled
17-
- errcheck
18-
- goconst
19-
- gocritic
2021
- gofmt
2122
- goimports
22-
- golint
23-
- gosec
24-
- gosimple
25-
- govet
26-
- ineffassign
27-
- maligned
28-
- misspell
29-
- nakedret
30-
- prealloc
31-
- scopelint
32-
- staticcheck
33-
- structcheck
34-
- stylecheck
35-
- typecheck
36-
- unconvert
37-
- unused
38-
- unparam
39-
- misspell
40-
- nolintlint
4123

42-
linters-settings:
43-
dogsled:
44-
max-blank-identifiers: 3
45-
maligned:
46-
suggest-new: true
47-
nolintlint:
48-
allow-unused: false
49-
allow-leading-space: true
50-
require-explanation: false
51-
require-specific: false

0 commit comments

Comments
 (0)