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 55fe38f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,30 @@ 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: |
rebar3 as interop compile
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 55fe38f

Please sign in to comment.