datahaven/.github/workflows/task-ts-build.yml
Tim B 6ac58c532f
test: New CLI functions (#84)
## Changes

- New option: `--kurtosis-enclave-name` to allow you to specify a new
ethereum network with a different enclave name. Neccesary step for
setting up local testing with multiple enclaves running at once
- Refactor: all single dash options (e.g. `-i`) have been renamed to
have double dashes `--` for consistency others
- sad times: CLI now must be invoked `bun cli launch` since we have
multiple fns now
- Package Update
- New Function: `stop` which allows you to kill all components (eth, dh,
relayers) or only a single part
- Gonza's mac target build fix
- Misc fixes to ci like caching and rate limits

## Additional Comment 

The CLI needs multiple commands and this PR adds the first new one
`stop`.

This syntax is faily extensible so @ffarall 's k8 command can follow
suite.

Originally we were going to have an `exec` command to expose internal
fns to be callable by command line, i.e. generate beacon checkpoint -
however the need for it has since been superceded by the deploy to k8
command that's going to be added. I've left the code in place though so
when another usecase comes up we can just plug that in.

---------

Co-authored-by: Facundo Farall <37149322+ffarall@users.noreply.github.com>
2025-05-22 20:02:12 +00:00

45 lines
No EOL
1.2 KiB
YAML

name: TS Build
on:
workflow_dispatch:
workflow_call:
jobs:
generate-wagmi:
runs-on: ubuntu-latest
name: Check Bindings are current
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- uses: oven-sh/setup-bun@v2
- uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Run Forge build
run: |
forge build
working-directory: contracts
- name: Install dependencies
working-directory: test
run: bun install
- name: Generate Wagmi Bindings
working-directory: test
run: bun generate:wagmi
- name: Check no local changes
run: |
changes=$(git status --porcelain .)
if [ -n "$changes" ]; then
echo "generate:wagmi produced changes:"
echo "$changes"
echo "Please run 'bun generate:wagmi' locally and commit the changes."
exit 1
else
echo "No changes"
exit 0
fi