File tree 5 files changed +9
-11
lines changed
solana/programs/example-native-token-transfers
5 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 91
91
sh -c "$(curl -sSfL https://release.solana.com/v${SOLANA_VERSION}/install)"
92
92
~/.local/share/solana/install/active_release/bin/sdk/sbf/scripts/install.sh
93
93
94
- - name : cargo build-sbf && cargo test-sbf
94
+ - name : cargo build-sbf && cargo test-sbf && cargo test
95
95
env :
96
96
RUST_BACKTRACE : " 1"
97
97
run : |
@@ -101,16 +101,9 @@ jobs:
101
101
102
102
mkdir -p "${BPF_OUT_DIR}"
103
103
104
- BPF_PACKAGES=(
105
- programs/example-native-token-transfers/Cargo.toml
106
- programs/wormhole-governance/Cargo.toml
107
- )
108
- for p in "${BPF_PACKAGES[@]}"; do
109
- cargo build-sbf --manifest-path "${p}"
110
- done
111
- for p in "${BPF_PACKAGES[@]}"; do
112
- cargo test-sbf --manifest-path "${p}"
113
- done
104
+ cargo build-sbf
105
+ cargo test-sbf
106
+ cargo test
114
107
anchor-test :
115
108
name : Anchor Test
116
109
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ idl-build = [
18
18
" anchor-lang/idl-build" ,
19
19
" anchor-spl/idl-build"
20
20
]
21
+ # cargo-test-sbf will pass this along
22
+ test-sbf = []
21
23
22
24
[dependencies ]
23
25
ahash = " =0.8.5"
Original file line number Diff line number Diff line change
1
+ #![ cfg( feature = "test-sbf" ) ]
1
2
#![ feature( type_changing_struct_update) ]
2
3
3
4
use anchor_lang:: prelude:: * ;
Original file line number Diff line number Diff line change
1
+ #![ cfg( feature = "test-sbf" ) ]
1
2
#![ feature( type_changing_struct_update) ]
2
3
3
4
use anchor_lang:: { prelude:: * , InstructionData } ;
Original file line number Diff line number Diff line change
1
+ #![ cfg( feature = "test-sbf" ) ]
1
2
#![ feature( type_changing_struct_update) ]
2
3
3
4
use anchor_lang:: prelude:: { Clock , Pubkey } ;
You can’t perform that action at this time.
0 commit comments