@15gifts/sdk
v0.24.0
Published
To learn more about how to use the Humara SDK, check out our API Reference and Documentation.
Readme
Humara SDK
To learn more about how to use the Humara SDK, check out our API Reference and Documentation.
Development
See CONTRIBUTING.md
Pact consumer contract testing
The SDK acts as the Pact consumer for conversation contracts.
Generate the consumer pact file:
npm run test:consumer:conversation --workspace packages/sdkPublish generated contracts to Pact Broker:
PACT_BROKER_TOKEN=<token> npm run pact:publish:conversation --workspace packages/sdkOptional environment variables for publishing:
PACT_BROKER_URL(default:https://pactbroker.nonlive.15gifts.com)PACT_CONSUMER_VERSION(default:GITHUB_SHAorlocal-dev)PACT_CONSUMER_BRANCH(default:GITHUB_REF_NAMEorlocal)
CI workflow: .github/workflows/pact-contract-verification.yml (uses the reusable Pact workflow from indy-workflows).
