-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split examples & Integration Test (#27)
* add action * add grpc listen * only run * using gripmock:test * using gripmock:test * wait for it to serve * test example 2 * run simple example * fix args * dont remove gripmock * wrap ups test * support go package with semicolon * fix alias package * wkt example * fix example stream * change event of integration test * address review
- Loading branch information
Showing
22 changed files
with
525 additions
and
703 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Integration test | ||
on: | ||
pull_request: | ||
branches: | ||
master | ||
|
||
|
||
jobs: | ||
build: | ||
name: Run example | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Run Simple Example | ||
uses: ./ | ||
with: | ||
entrypoint: .github/workflows/run-example.sh | ||
args: simple | ||
- name: Run Stream Example | ||
uses: ./ | ||
with: | ||
entrypoint: .github/workflows/run-example.sh | ||
args: stream | ||
- name: Run WKT Example | ||
uses: ./ | ||
with: | ||
entrypoint: .github/workflows/run-example.sh | ||
args: well_known_types | ||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
|
||
gripmock --stub=example/$1/stub example/$1/$1.proto & | ||
|
||
go run example/$1/client/*.go |
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
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ fi | |
|
||
go build ../. | ||
|
||
docker build -t "ahmadmuzakki/gripmock:$1" . | ||
docker build -t "tkpd/gripmock:$1" . |
Oops, something went wrong.