- Add repository secrets
LT_USERNAME,LT_ACCESS_KEY,GEMINI_API_KEY, andRECEIPT_GIT_TOKEN(a fine-grained PAT that can push fixer commits). Never print their values. - Set
RECEIPT_PRODUCTION_URLas a repository variable. The action uses it when the preview never returns HTTP 200. - Copy
tests/receipt_checkout_test.mdand the<!-- kane:how-to-test -->block, then add a workflow whose Receipt step passesproduction-url,allowlist, and the three Vercel env values below.
uses: ohjay-official/receipt@main
with:
test-file: tests/receipt_checkout_test.md
production-url: ${{ vars.RECEIPT_PRODUCTION_URL }}
allowlist: "<your app path>/**"
username: ${{ secrets.LT_USERNAME }}
access-key: ${{ secrets.LT_ACCESS_KEY }}
gemini-api-key: ${{ secrets.GEMINI_API_KEY }}
git-token: ${{ secrets.RECEIPT_GIT_TOKEN }}
env:
RECEIPT_VERCEL_PROJECT: <your-vercel-project>
RECEIPT_VERCEL_SCOPE: <your-vercel-team-slug>
RECEIPT_WAIT_FOR_VERCEL_STATUS: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}Pin to a commit SHA for stability: ohjay-official/receipt@<sha>. This install has not been verified on a second repo. This repository’s own workflow listens on pull_request and waits for the Vercel commit status.