Commit 7e3a7ae 1 parent ae7cbae commit 7e3a7ae Copy full SHA for 7e3a7ae
File tree 4 files changed +22
-3
lines changed
4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,31 @@ jobs:
69
69
- name : Install Go
70
70
uses : actions/setup-go@v2
71
71
with :
72
- go-version : 1.20 .x
72
+ go-version : 1.18 .x
73
73
- name : Install goimports
74
74
run : go install golang.org/x/tools/cmd/goimports@latest
75
75
- name : Checkout code
76
76
uses : actions/checkout@v2
77
77
- run : goimports -local github.com/scroll-tech/go-ethereum/ -w .
78
+ # If there are any diffs from goimports, fail.
79
+ - name : Verify no changes from goimports
80
+ run : |
81
+ if [ -n "$(git status --porcelain)" ]; then
82
+ exit 1
83
+ fi
84
+ go-mod-tidy-lint :
85
+ if : github.event.pull_request.draft == false
86
+ runs-on : ubuntu-latest
87
+ steps :
88
+ - name : Install Go
89
+ uses : actions/setup-go@v2
90
+ with :
91
+ go-version : 1.20.x
92
+ - name : Checkout code
93
+ uses : actions/checkout@v2
78
94
- run : go mod tidy
79
- # If there are any diffs from goimports or go mod tidy, fail.
80
- - name : Verify no changes from goimports and go mod tidy
95
+ # If there are any diffs from go mod tidy, fail.
96
+ - name : Verify no changes from go mod tidy
81
97
run : |
82
98
if [ -n "$(git status --porcelain)" ]; then
83
99
exit 1
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import (
22
22
"math/big"
23
23
24
24
"github.com/holiman/uint256"
25
+
25
26
"github.com/scroll-tech/go-ethereum/common"
26
27
"github.com/scroll-tech/go-ethereum/crypto/kzg4844"
27
28
"github.com/scroll-tech/go-ethereum/params"
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import (
22
22
"math/big"
23
23
24
24
"github.com/holiman/uint256"
25
+
25
26
"github.com/scroll-tech/go-ethereum/common"
26
27
"github.com/scroll-tech/go-ethereum/common/hexutil"
27
28
)
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
26
26
gokzg4844 "github.com/crate-crypto/go-kzg-4844"
27
27
ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go"
28
+
28
29
"github.com/scroll-tech/go-ethereum/common/hexutil"
29
30
)
30
31
You can’t perform that action at this time.
0 commit comments