Skip to content

Commit

Permalink
test: add codegen test (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyJavaBean authored Sep 26, 2023
1 parent a959e9f commit 0a54102
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/push-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0a54102

Please sign in to comment.