Skip to content

Commit c7031a9

Browse files
authored
ci: update taskfile for rlpgen (#1214)
1 parent fcf0ce4 commit c7031a9

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

Taskfile.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ tasks:
5454
- task: generate-mocks
5555
- task: check-clean-branch
5656

57+
check-generate-rlp:
58+
desc: Checks that generated rlp files are up-to-date (requires a clean git working tree)
59+
cmds:
60+
- task: generate-rlp
61+
- task: check-clean-branch
62+
5763
check-go-mod-tidy:
5864
desc: Checks that go.mod and go.sum are up-to-date (requires a clean git working tree)
5965
cmds:
@@ -76,6 +82,12 @@ tasks:
7682
- cmd: grep -lr -E '^// Code generated by MockGen\. DO NOT EDIT\.$' . | xargs -r rm
7783
- cmd: go generate -run "go.uber.org/mock/mockgen" ./...
7884

85+
generate-rlp:
86+
desc: Generates rlp files
87+
cmds:
88+
- cmd: grep -lr -E '^// Code generated by rlpgen\. DO NOT EDIT.\.$' . | xargs -r rm
89+
- cmd: go generate -run "github.com/ava-labs/libevm/rlp/rlpgen" ./...
90+
7991
lint:
8092
desc: Run golangci-lint and check for allowed Ethereum imports in Go code
8193
cmd: ./scripts/lint.sh
@@ -88,6 +100,7 @@ tasks:
88100
- shellcheck
89101
- check-generate-codec
90102
- check-generate-mocks
103+
- check-generate-rlp
91104

92105
lint-all-ci:
93106
desc: Runs all lint checks one-by-one
@@ -97,6 +110,7 @@ tasks:
97110
- task: shellcheck
98111
- task: check-generate-codec
99112
- task: check-generate-mocks
113+
- task: check-generate-rlp
100114

101115
shellcheck:
102116
desc: Run shellcheck static analysis on all shell scripts with version management

plugin/evm/customtypes/gen_header_serializable_rlp.go

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)