-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a959e9f
commit 0a54102
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,31 @@ jobs: | |
echo "test done!" | ||
go vet -stdmethods=false $(go list ./...) | ||
echo "go vet done!" | ||
codegen-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.17' | ||
- name: Prepare | ||
run: | | ||
go install | ||
go install github.com/cloudwego/kitex/tool/cmd/kitex@develop | ||
LOCAL_REPO=$(pwd) | ||
cd .. | ||
git clone https://github.com/cloudwego/kitex-tests.git | ||
cd kitex-tests/codegen | ||
go mod init codegen-test | ||
go mod edit -replace=github.com/apache/thrift=github.com/apache/[email protected] | ||
go mod edit -replace github.com/cloudwego/thriftgo=${LOCAL_REPO} | ||
go mod tidy | ||
bash -version | ||
bash ./codegen_install_check.sh | ||
- name: CodeGen | ||
run: | | ||
cd ../kitex-tests/codegen | ||
tree | ||
bash ./codegen_run.sh |