Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ci checks #4731

Merged
merged 1 commit into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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