-
Notifications
You must be signed in to change notification settings - Fork 480
[E2E] Add create_call_builder for testing on-chain contracts
#2075
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
Changes from 25 commits
6377e2d
05fc1dd
ed61d63
a8730f5
16585d5
db87053
77a7d27
9b304d3
9900cc9
d8e14ae
8c1d5b3
ad1a908
21d6566
7300c05
c9fb742
376ccd0
b0f52fe
68da706
19cbdf8
a04859e
4975b78
703dcb2
823ec14
7c21503
b56979a
337d298
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ on: | |
| - 'FILE_HEADER' | ||
|
|
||
| env: | ||
| IMAGE: paritytech/ci-unified:bullseye-1.74.0 | ||
| IMAGE: paritytech/ci-unified:bullseye-1.75.0 | ||
| CARGO_TARGET_DIR: /ci-cache/${{ github.repository }}/targets/${{ github.ref_name }}/${{ github.job }} | ||
| CARGO_INCREMENTAL: 0 | ||
| PURELY_STD_CRATES: ink/codegen metadata engine e2e e2e/macro ink/ir | ||
|
|
@@ -491,6 +491,24 @@ jobs: | |
| cargo clean --manifest-path integration-tests/static-buffer/Cargo.toml | ||
| INK_STATIC_BUFFER_SIZE=30 cargo test --verbose --manifest-path integration-tests/static-buffer/Cargo.toml --all-features | ||
|
|
||
| - name: Run E2E test with on-chain contract | ||
| env: | ||
| # Fix linking of `linkme`: https://github.com/dtolnay/linkme/issues/49 | ||
| RUSTFLAGS: -Clink-arg=-z -Clink-arg=nostart-stop-gc | ||
| run: | | ||
| # run flipper E2E test with on-chain contract | ||
| substrate-contracts-node -lruntime::contracts=debug 2>&1 & | ||
| cargo contract build --release --manifest-path integration-tests/flipper/Cargo.toml | ||
| export CONTRACT_ADDR_HEX=$(cargo contract instantiate \ | ||
| --manifest-path integration-tests/flipper/Cargo.toml \ | ||
| --suri //Alice --args true -x -y --output-json | \ | ||
| jq -r .contract | xargs subkey inspect | grep -o "0x.*" | head -n1) | ||
| CONTRACTS_NODE_URL=ws://127.0.0.1:9944 cargo test \ | ||
| --features e2e-tests \ | ||
| --manifest-path integration-tests/flipper/Cargo.toml \ | ||
| e2e_test_deployed_contract \ | ||
| -- --ignored --nocapture | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm just thinking if this logic could be moved to an e2e/integration test for Ink instead of the CI workflow. This change would enable us to run it locally.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean as an ink! e2e test that directly uses the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So my idea with the e2e test in Since the |
||
|
|
||
| examples-contract-build: | ||
| runs-on: ubuntu-latest | ||
| needs: [set-image, build] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.