-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improve examples validate script * fix examples validation * update examples deps * update Watermill deps * added example steps to Makefile * update leftover examples deps * Validate examples CI (#326)
- Loading branch information
1 parent
5e51c1b
commit ccff4d1
Showing
104 changed files
with
3,796 additions
and
3,133 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,16 @@ | ||
name: pr-examples | ||
on: | ||
pull_request: | ||
paths: | ||
- '_examples/**/*' | ||
|
||
jobs: | ||
validate-examples: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.19.1' | ||
- run: make validate_examples | ||
timeout-minutes: 30 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
timeout: 60 | ||
timeout: 180 | ||
expected_output: "received event {ID:[0-9]+}" |
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 |
---|---|---|
@@ -1,8 +1,40 @@ | ||
module main.go | ||
|
||
require ( | ||
github.com/ThreeDotsLabs/watermill v1.0.0-rc.2 | ||
github.com/ThreeDotsLabs/watermill-kafka/v2 v2.0.0 | ||
github.com/ThreeDotsLabs/watermill v1.2.0-rc.11 | ||
github.com/ThreeDotsLabs/watermill-kafka/v2 v2.2.2 | ||
) | ||
|
||
go 1.11 | ||
require ( | ||
github.com/Shopify/sarama v1.38.0 // indirect | ||
github.com/cenkalti/backoff/v3 v3.2.2 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/eapache/go-resiliency v1.3.0 // indirect | ||
github.com/eapache/go-xerial-snappy v0.0.0-20230111030713-bf00bc1b83b6 // indirect | ||
github.com/eapache/queue v1.1.0 // indirect | ||
github.com/go-logr/logr v1.2.3 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/golang/snappy v0.0.4 // indirect | ||
github.com/google/uuid v1.3.0 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/hashicorp/go-uuid v1.0.3 // indirect | ||
github.com/jcmturner/aescts/v2 v2.0.0 // indirect | ||
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect | ||
github.com/jcmturner/gofork v1.7.6 // indirect | ||
github.com/jcmturner/gokrb5/v8 v8.4.3 // indirect | ||
github.com/jcmturner/rpc/v2 v2.0.3 // indirect | ||
github.com/klauspost/compress v1.15.15 // indirect | ||
github.com/lithammer/shortuuid/v3 v3.0.7 // indirect | ||
github.com/oklog/ulid v1.3.1 // indirect | ||
github.com/pierrec/lz4/v4 v4.1.17 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama v0.37.0 // indirect | ||
go.opentelemetry.io/otel v1.11.2 // indirect | ||
go.opentelemetry.io/otel/trace v1.11.2 // indirect | ||
golang.org/x/crypto v0.5.0 // indirect | ||
golang.org/x/net v0.5.0 // indirect | ||
) | ||
|
||
go 1.19 |
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
_examples/basic/2-realtime-feed/.validate_example_publishing.yml
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
_examples/basic/2-realtime-feed/.validate_example_subscribing.yml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
timeout: 60 | ||
expected_output: "msg=\"Starting handler\"" | ||
timeout: 180 | ||
expected_output: "Adding to feed" |
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 |
---|---|---|
@@ -1,9 +1,40 @@ | ||
module main.go | ||
|
||
require ( | ||
github.com/ThreeDotsLabs/watermill v1.0.0-rc.2 | ||
github.com/ThreeDotsLabs/watermill-kafka/v2 v2.0.0 | ||
github.com/pkg/errors v0.8.1 | ||
github.com/ThreeDotsLabs/watermill v1.2.0-rc.11 | ||
github.com/ThreeDotsLabs/watermill-kafka/v2 v2.2.2 | ||
github.com/pkg/errors v0.9.1 | ||
) | ||
|
||
go 1.11 | ||
require ( | ||
github.com/Shopify/sarama v1.38.0 // indirect | ||
github.com/cenkalti/backoff/v3 v3.2.2 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/eapache/go-resiliency v1.3.0 // indirect | ||
github.com/eapache/go-xerial-snappy v0.0.0-20230111030713-bf00bc1b83b6 // indirect | ||
github.com/eapache/queue v1.1.0 // indirect | ||
github.com/go-logr/logr v1.2.3 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/golang/snappy v0.0.4 // indirect | ||
github.com/google/uuid v1.3.0 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/hashicorp/go-uuid v1.0.3 // indirect | ||
github.com/jcmturner/aescts/v2 v2.0.0 // indirect | ||
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect | ||
github.com/jcmturner/gofork v1.7.6 // indirect | ||
github.com/jcmturner/gokrb5/v8 v8.4.3 // indirect | ||
github.com/jcmturner/rpc/v2 v2.0.3 // indirect | ||
github.com/klauspost/compress v1.15.15 // indirect | ||
github.com/lithammer/shortuuid/v3 v3.0.7 // indirect | ||
github.com/oklog/ulid v1.3.1 // indirect | ||
github.com/pierrec/lz4/v4 v4.1.17 // indirect | ||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama v0.37.0 // indirect | ||
go.opentelemetry.io/otel v1.11.2 // indirect | ||
go.opentelemetry.io/otel/trace v1.11.2 // indirect | ||
golang.org/x/crypto v0.5.0 // indirect | ||
golang.org/x/net v0.5.0 // indirect | ||
) | ||
|
||
go 1.19 |
Oops, something went wrong.