Skip to content

Commit 2580bd1

Browse files
authored
chore(ci): add go_tidy job to go workflow (#127)
1 parent 94383c7 commit 2580bd1

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/go.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,14 @@ jobs:
4646

4747
- name: git diff
4848
run: git diff --exit-code
49+
50+
go_tidy:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: Set up Go
55+
uses: actions/setup-go@v5
56+
with:
57+
go-version-file: "go.mod"
58+
- run: go mod tidy
59+
- run: git diff --exit-code

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ require (
3434
github.com/golang-jwt/jwt/v4 v4.5.0
3535
github.com/golang/protobuf v1.5.3
3636
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb
37+
github.com/google/go-cmp v0.5.9
3738
github.com/google/gofuzz v1.2.0
3839
github.com/google/uuid v1.3.0
3940
github.com/gorilla/websocket v1.4.2
@@ -49,6 +50,7 @@ require (
4950
github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267
5051
github.com/julienschmidt/httprouter v1.3.0
5152
github.com/karalabe/usb v0.0.2
53+
github.com/kr/pretty v0.3.1
5254
github.com/kylelemons/godebug v1.1.0
5355
github.com/mattn/go-colorable v0.1.13
5456
github.com/mattn/go-isatty v0.0.17
@@ -67,6 +69,7 @@ require (
6769
go.uber.org/automaxprocs v1.5.2
6870
golang.org/x/crypto v0.17.0
6971
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
72+
golang.org/x/mod v0.14.0
7073
golang.org/x/sync v0.5.0
7174
golang.org/x/sys v0.16.0
7275
golang.org/x/text v0.14.0
@@ -108,7 +111,6 @@ require (
108111
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
109112
github.com/goccy/go-json v0.10.2 // indirect
110113
github.com/gogo/protobuf v1.3.2 // indirect
111-
github.com/google/go-cmp v0.5.9 // indirect
112114
github.com/google/go-querystring v1.1.0 // indirect
113115
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
114116
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
@@ -118,7 +120,6 @@ require (
118120
github.com/kilic/bls12-381 v0.1.0 // indirect
119121
github.com/klauspost/compress v1.15.15 // indirect
120122
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
121-
github.com/kr/pretty v0.3.1 // indirect
122123
github.com/kr/text v0.2.0 // indirect
123124
github.com/mattn/go-runewidth v0.0.13 // indirect
124125
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
@@ -140,7 +141,6 @@ require (
140141
github.com/tklauser/go-sysconf v0.3.12 // indirect
141142
github.com/tklauser/numcpus v0.6.1 // indirect
142143
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
143-
golang.org/x/mod v0.14.0 // indirect
144144
golang.org/x/net v0.18.0 // indirect
145145
google.golang.org/protobuf v1.27.1 // indirect
146146
gopkg.in/yaml.v2 v2.4.0 // indirect

0 commit comments

Comments
 (0)