Skip to content

Commit

Permalink
add interop tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Nov 12, 2023
1 parent 593a10c commit aa23925
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,29 @@ jobs:
file: _build/test/covertool/grpcbox.covertool.xml
env_vars: OTP_VERSION

- name: Setup Go 1.21.4
uses: actions/setup-go@v4
with:
# Semantic version range syntax or exact version of Go
go-version: '1.21.4'

- uses: actions/checkout@v4
with:
repository: 'grpc/grpc-go'
path: 'grpc-go'

- name: Install grpc-go interop client
run: |
cd grpc-go
go build -o ./go-grpc-interop-client ./interop/client
- name: Run interop tests
run: |
erl -detached -config interop/config/sys.config -pa `rebar3 as interop path` -pa _build/interop/lib/grpcbox/interop/ -s application ensure_all_started grpcbox
PATH=grpc-go/:$PATH interop/run_server_tests.sh
dialyzer:
name: Dialyze on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion interop/run_server_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tests=(

for test in "${tests[@]}"; do
echo -n "Running ${test}... "
$GOPATH/bin/go-grpc-interop-client -use_tls=$TLS -test_case=$test -server_port=$PORT
go-grpc-interop-client -use_tls=$TLS -test_case=$test -server_port=$PORT
if [[ $? -ne 0 ]]; then
echo "Failed!"
exit 1
Expand Down

0 comments on commit aa23925

Please sign in to comment.