File tree Expand file tree Collapse file tree 4 files changed +9
-16
lines changed Expand file tree Collapse file tree 4 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 2424 - uses : actions/setup-node@v4
2525 with :
2626 node-version-file : " package.json"
27+ - uses : pnpm/action-setup@v4
28+ name : Install pnpm
29+ with :
30+ run_install : true
2731 - name : Install Solana Cli
2832 run : |
2933 sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
3438 run : solana-keygen new --no-bip39-passphrase
3539 - name : Install Anchor
3640 run : RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
41+ - name : Install test dependencies
42+ run : pnpm install --frozen-lockfile
43+ - name : Run anchor tests
44+ run : CARGO_TARGET_DIR="$PWD/target" anchor test
Original file line number Diff line number Diff line change 2121 - uses : actions/setup-node@v4
2222 with :
2323 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
3824 # Libusb is a build requirement for the node-hid package and so pnpm
3925 # install will fail if this isn't in the build environment and if a
4026 # precompiled binary isn't found.
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "fix:format" : " prettier --write **/*.*" ,
77 "test:format" : " prettier --check **/*.*" ,
8- "test:anchor" : " CARGO_TARGET_DIR=\" $PWD/target\" anchor test" ,
98 "setup" : " pnpm ts-node scripts/setup.ts" ,
109 "check-trusted-signer" : " pnpm ts-node scripts/check_trusted_signer.ts"
1110 },
Original file line number Diff line number Diff line change 33 "extends" : [" //" ],
44 "tasks" : {
55 "test" : {
6- "dependsOn" : [" test:format" , " test:anchor " ]
6+ "dependsOn" : [" test:format" ]
77 },
88 "test:anchor" : {}
99 }
You can’t perform that action at this time.
0 commit comments