Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

chadoh
Copy link
Contributor

@chadoh chadoh commented Aug 28, 2023

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

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.
@willemneal
Copy link
Member

I'm not seeing the bindings CI test, do you need special permission to run the new action?
@paulbellamy @leighmcculloch @tsachiherman

@chadoh chadoh marked this pull request as ready for review August 28, 2023 17:27
Comment on lines +5 to +12
"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",
Copy link
Contributor Author

@chadoh chadoh Aug 28, 2023

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 <351529+leighmcculloch@users.noreply.github.com>
@chadoh
Copy link
Contributor Author

chadoh commented Dec 14, 2023

Obsolesced by #1037

@chadoh chadoh closed this Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants