Skip to content

Commit b7c4c7a

Browse files
committed
Add CI test
1 parent 475ceca commit b7c4c7a

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ jobs:
623623
scripts/for_all_contracts_exec.sh \
624624
--ignore internal/static-buffer \
625625
--ignore internal/mapping \
626+
--ignore public/contract-xcm \
626627
--partition ${{ matrix.partition }}/4 -- \
627628
cargo contract test --all-features --manifest-path {}
628629
@@ -653,7 +654,6 @@ jobs:
653654
with:
654655
command: |
655656
cargo contract test --all-features --manifest-path integration-tests/internal/mapping/Cargo.toml
656-
657657
INK_STATIC_BUFFER_SIZE=256 cargo test --all-features --manifest-path integration-tests/internal/mapping/Cargo.toml -- --ignored fallible_storage_methods_work
658658
659659
examples-custom-test:
@@ -694,6 +694,33 @@ jobs:
694694
e2e_test_deployed_contract \
695695
-- --ignored --nocapture
696696
697+
examples-xcm-test:
698+
runs-on: ubuntu-latest
699+
needs: [clippy, clippy-examples]
700+
steps:
701+
- name: Checkout
702+
uses: actions/checkout@v5
703+
with:
704+
fetch-depth: 1
705+
706+
- name: Initialize runner
707+
uses: ./.github/init
708+
with:
709+
cache: true
710+
cache-directories: ${{ github.workspace }}/${{ env.CARGO_TARGET_DIR }}
711+
cache-on-failure: true
712+
713+
- name: Run E2E test with Westend runtime
714+
uses: ./.github/run-container-command
715+
env:
716+
# Fix linking of `linkme`: https://github.com/dtolnay/linkme/issues/49
717+
RUSTFLAGS: -Clink-arg=-z -Clink-arg=nostart-stop-gc -Clink-dead-code
718+
with:
719+
command: |
720+
polkadot-parachain --chain westend.json --dev -lruntime::revive=trace,xcm=trace &;
721+
sleep 5m;
722+
CONTRACTS_NODE_URL=ws://127.0.0.1:9944 cargo test --all-features --manifest-path integration-tests/public/contract-xcm/Cargo.toml
723+
697724
- name: Test static-buffer example
698725
uses: ./.github/run-container-command
699726
env:

0 commit comments

Comments
 (0)