Skip to content

Unit tests for DSL workflow #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export PATH := $(GOPATH)/bin:$(PATH)
default: test

PROGS = helloworld \
delaystart \
branch \
childworkflow \
crossdomain \
Expand Down Expand Up @@ -52,6 +53,7 @@ TEST_DIRS=./cmd/samples/cron \
./cmd/samples/recipes/choice \
./cmd/samples/recipes/greetings \
./cmd/samples/recipes/helloworld \
./cmd/samples/recipes/delaystart \
./cmd/samples/recipes/cancelactivity \
./cmd/samples/recipes/pickfirst \
./cmd/samples/recipes/mutex \
Expand All @@ -75,6 +77,9 @@ cancelactivity:
helloworld:
go build -o bin/helloworld cmd/samples/recipes/helloworld/*.go

delaystart:
go build -o bin/delaystart cmd/samples/recipes/delaystart/*.go

branch:
go build -o bin/branch cmd/samples/recipes/branch/*.go

Expand Down Expand Up @@ -168,6 +173,7 @@ sideeffect:
go build -o bin/sideeffect cmd/samples/recipes/sideeffect/*.go

bins: helloworld \
delaystart \
branch \
crossdomain \
childworkflow \
Expand Down
8 changes: 8 additions & 0 deletions cmd/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ See instructions for running the Cadence Server: https://github.com/uber/cadence

## Steps to run samples
### Build Samples
* Build all the workflows at once
```
make
```
* Build a workflow individually
```
make <WORKFLOW NAME>

Example:
make helloworld
```

### Run HelloWorld Sample
* Start workers for helloworld workflow and activities
Expand Down
Loading