Skip to content

Commit

Permalink
chore: add client server integration test (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesward committed Dec 21, 2021
1 parent 9922e87 commit 4a25ef4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
pull_request:

jobs:
gradle:
strategy:
Expand All @@ -30,3 +31,21 @@ jobs:
if: matrix.java == '11'
run: ./gradlew build
working-directory: ./examples

- id: test-data
name: Run HelloWorld
if: matrix.java == '11'
working-directory: ./examples
run: |-
./gradlew :server:HelloWorldServer &
sleep 30
OUTPUT=$(./gradlew :client:HelloWorldClient)
echo "::set-output name=stdout::${OUTPUT//$'\n'/'%0A'}"
- name: Test HelloWorld
if: matrix.java == '11'
uses: nick-invision/assert-action@v1
with:
expected: "Received: Hello world"
actual: ${{ steps.test-data.outputs.stdout }}
comparison: contains

0 comments on commit 4a25ef4

Please sign in to comment.