File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 24
24
- uses : actions/setup-node@v4
25
25
with :
26
26
node-version-file : " package.json"
27
+ # Libusb is a build requirement for the node-hid package and so pnpm
28
+ # install will fail if this isn't in the build environment and if a
29
+ # precompiled binary isn't found.
30
+ - name : Install libusb
31
+ run : sudo apt install -y libusb-1.0-0-dev libudev-dev
32
+ - uses : pnpm/action-setup@v4
33
+ name : Install pnpm
34
+ with :
35
+ run_install : true
27
36
- name : Install Solana Cli
28
37
run : |
29
38
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
34
43
run : solana-keygen new --no-bip39-passphrase
35
44
- name : Install Anchor
36
45
run : RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
46
+ - name : Run anchor tests
47
+ run : pnpm run test:anchor
Original file line number Diff line number Diff line change 21
21
- uses : actions/setup-node@v4
22
22
with :
23
23
node-version-file : " package.json"
24
- - uses : actions-rust-lang/setup-rust-toolchain@v1
25
- with :
26
- toolchain : 1.81.0
27
- - uses : Swatinem/rust-cache@v2
28
- - name : Install Solana Cli
29
- run : |
30
- sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
31
- echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
32
- - name : Set Solana Cli version
33
- run : agave-install init 1.18.26
34
- - name : Create Solana key
35
- run : solana-keygen new --no-bip39-passphrase
36
- - name : Install Anchor
37
- run : RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
38
24
# Libusb is a build requirement for the node-hid package and so pnpm
39
25
# install will fail if this isn't in the build environment and if a
40
26
# precompiled binary isn't found.
Original file line number Diff line number Diff line change 3
3
"extends" : [" //" ],
4
4
"tasks" : {
5
5
"test" : {
6
- "dependsOn" : [" test:format" , " test:anchor " ]
6
+ "dependsOn" : [" test:format" ]
7
7
},
8
8
"test:anchor" : {}
9
9
}
You can’t perform that action at this time.
0 commit comments