Skip to content

Commit

Permalink
add ci checks for type comtatilble, api/mock api generation, (#4731)
Browse files Browse the repository at this point in the history
and documents generation.
  • Loading branch information
zl03jsj authored Jan 19, 2022
1 parent 41f4ea7 commit 28b90df
Show file tree
Hide file tree
Showing 6 changed files with 329 additions and 307 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/baisc_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,25 @@ jobs:
run: make test-venus-shared

- name: compatible-checks
run: make compatible-all
run: |
make compatible-all
git --no-pager diff
git --no-pager diff --quiet
- name: check api docs
run: |
make api-docs
git --no-pager diff
git --no-pager diff --quiet
- name: check cbor-gen
run: |
make cborgen
git --no-pager diff
git --no-pager diff --quiet
- name: show git status
- name: check mock pai
run: |
git status --porcelain
test -z "$(git status --porcelain)"
make mock-api-gen
git --no-pager diff
git --no-pager diff --quiet
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ cborgen:
gogen:
cd venus-shared && go generate ./...

mock-api-gen:
cd ./venus-shared/api/chain/v0 && go run github.com/golang/mock/mockgen -destination=./mock/full.go -package=mock . FullNode
cd ./venus-shared/api/chain/v1 && go run github.com/golang/mock/mockgen -destination=./mock/full.go -package=mock . FullNode

inline-gen:
cd venus-devtool && go run ./inline-gen/main.go ../ ./inline-gen/inlinegen-data.json

Expand Down
Loading

0 comments on commit 28b90df

Please sign in to comment.