Skip to content

Commit ad49514

Browse files
authored
chore: move lazer contract tests out of pnpm test (#2437)
1 parent c0478a2 commit ad49514

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

.github/workflows/ci-lazer-solana-contract.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ jobs:
2424
- uses: actions/setup-node@v4
2525
with:
2626
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
2736
- name: Install Solana Cli
2837
run: |
2938
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
@@ -34,3 +43,5 @@ jobs:
3443
run: solana-keygen new --no-bip39-passphrase
3544
- name: Install Anchor
3645
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

.github/workflows/ci-turbo-test.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ jobs:
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.

lazer/contracts/solana/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"extends": ["//"],
44
"tasks": {
55
"test": {
6-
"dependsOn": ["test:format", "test:anchor"]
6+
"dependsOn": ["test:format"]
77
},
88
"test:anchor": {}
99
}

0 commit comments

Comments
 (0)