Skip to content

Commit e70f195

Browse files
committed
chore: move lazer contract tests out of pnpm test
1 parent c70c7f8 commit e70f195

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
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)"
@@ -34,3 +38,7 @@ jobs:
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

.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/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
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
},

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)