Execute a Spark spell on a forked network with a shareable links.
Spell Caster can be run as CLI (for local testing) or configured as GitHub Action.
bun install # only first time
# fill out .env based on .env.example
# bun src/index.ts --root <spark-spells-root-path> <spell-name>
bun src/index.ts --root ../spark-spell SparkEthereum_20240627
Presents results as GitHub PR comment.
- name: Spell Caster
uses: marsfoundation/spell-caster@action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
TENDERLY_API_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }}
TENDERLY_PROJECT: ${{ secrets.TENDERLY_PROJECT }}
TENDERLY_ACCOUNT: ${{ secrets.TENDERLY_USER }}
bun fix # to run linter, tests and typecheck
GitHub Runners don't support bun as runner environment so we use bun for testing and bundling but not as runtime dependency.
New release of github action (pushed to action
) branch is done after each commit to main
branch.