-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: CI test generated TS libraries #905
Conversation
What ---- Add CI test to run the tests in cmd/crates/soroban-spec-typescript/ts-tests Why --- This will ensure that the generated typescript libraries continue to work as they should.
I'm not seeing the bindings CI test, do you need special permission to run the new action? |
758f29e
to
8e1aceb
Compare
"postinstall": "curl -X POST \"http://localhost:8000/soroban/rpc\" && npm run fund && npm run deploy && npm run bindings || { echo \"Make sure you're running standalone RPC network on localhost:8000\" && exit 1; }", | ||
"fund": "./soroban config identity fund", | ||
"bindings:custom-types": "./soroban contract bindings typescript --contract-id $(cat contract-id-custom-types.txt) --output-dir ./node_modules/test-custom-types --overwrite", | ||
"bindings:hello-world": "./soroban contract bindings typescript --contract-id $(cat contract-id-hello-world.txt) --output-dir ./node_modules/test-hello-world --overwrite", | ||
"bindings": "npm run bindings:custom-types && npm run bindings:hello-world", | ||
"deploy:custom-types": "(./soroban contract deploy --wasm ../../../../target/wasm32-unknown-unknown/test-wasms/test_custom_types.wasm) > contract-id-custom-types.txt", | ||
"deploy:hello-world": "(./soroban contract deploy --wasm ../../../../target/wasm32-unknown-unknown/test-wasms/test_hello_world.wasm) > contract-id-hello-world.txt", | ||
"deploy": "npm run deploy:custom-types && npm run deploy:hello-world", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notice that this now adds CI tests for the networked versions of CLI commands contract bindings
and contract deploy
directly to the soroban-tools
repo, rather than needing system-test
for these tests.
If we also add a simple invoke
test, then we'll have duplicated system-test with a more-reliable, more-maintainable, three-minutes-to-run CI workflow.
Co-authored-by: Leigh McCulloch <[email protected]>
Obsolesced by #1037 |
What
Add CI test to run the tests in cmd/crates/soroban-spec-typescript/ts-tests
Why
This will ensure that the generated typescript libraries continue to work as they should.
Known limitations
N/A