This directory contains examples demonstrating different features or this library and Temporal.
To try these out you need to have a running Temporal service (setup instructions).
Install all the gem dependencies by running:
bundle installModify the init.rb file to point to your Temporal cluster.
Start a worker process:
bin/workerUse this command to trigger one of the example workflows from the workflows directory:
bin/trigger NAME_OF_THE_WORKFLOW [argument_1, argument_2, ...]To run tests, make sure the temporal server and the worker process are already running:
docker-compose up
bin/workerTo execute the tests, run:
bundle exec rspecTo add a new test that uses a new workflow or new activity, make sure to register those new
workflows and activities by modifying the bin/worker file and adding them there. After any
changes to that file, restart the worker process to pick up the new registrations.