@@ -27,14 +27,15 @@ jobs:
27
27
- uses : actions/checkout@v4
28
28
with :
29
29
persist-credentials : false
30
- - name : Stable with rustfmt and clippy
31
- uses : dtolnay/ rust-toolchain@master
30
+ - name : Setup rust
31
+ uses : actions-rust-lang/setup- rust-toolchain@v1
32
32
with :
33
33
toolchain : ${{matrix.rust}}
34
34
- name : Release build
35
35
run : cargo build --release --all-features
36
36
- name : Quick test
37
- run : cargo test --all-features
37
+ # The node doesn't seem to enjoy us sending a lot of requests concurrently.
38
+ run : cargo test --all-features -- --test-threads=1
38
39
39
40
test :
40
41
name : Test
47
48
48
49
- uses : actions/setup-python@v5
49
50
- name : Install nightly toolchain
50
- uses : dtolnay/ rust-toolchain@nightly
51
+ uses : actions-rust-lang/setup- rust-toolchain@v1
51
52
with :
52
53
toolchain : nightly
53
54
components : rustfmt, clippy
@@ -61,15 +62,15 @@ jobs:
61
62
tool : cargo-tarpaulin,cargo-rdme
62
63
63
64
- name : Check README is up-to-date
64
- run : cargo rdme --check
65
+ run : cargo +nightly rdme --check
65
66
66
67
- name : Run tests with coverage
67
68
run : RUST_BACKTRACE=1 cargo +nightly tarpaulin --out Xml --all-features --doc --tests
68
69
69
70
- name : Submit several transactions to chain
70
71
run : |
71
- RUST_BACKTRACE=1 cargo run --example transaction_broadcast --all-features
72
- RUST_BACKTRACE=1 cargo run --example contract_interaction --all-features
72
+ RUST_BACKTRACE=1 cargo +nightly run --example transaction_broadcast --all-features
73
+ RUST_BACKTRACE=1 cargo +nightly run --example contract_interaction --all-features
73
74
env :
74
75
TEST_TO_ADDRESS : ${{ secrets.TO_ADDRESS }}
75
76
TEST_MNEMONIC : ${{ secrets.MNEMONIC }}
0 commit comments