Skip to content

Commit

Permalink
chore: move lazer contract tests out of pnpm test (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riateche authored Feb 28, 2025
1 parent c0478a2 commit ad49514
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci-lazer-solana-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
# Libusb is a build requirement for the node-hid package and so pnpm
# install will fail if this isn't in the build environment and if a
# precompiled binary isn't found.
- name: Install libusb
run: sudo apt install -y libusb-1.0-0-dev libudev-dev
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true
- name: Install Solana Cli
run: |
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
Expand All @@ -34,3 +43,5 @@ jobs:
run: solana-keygen new --no-bip39-passphrase
- name: Install Anchor
run: RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
- name: Run anchor tests
run: pnpm run test:anchor
14 changes: 0 additions & 14 deletions .github/workflows/ci-turbo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
- uses: Swatinem/rust-cache@v2
- name: Install Solana Cli
run: |
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
- name: Set Solana Cli version
run: agave-install init 1.18.26
- name: Create Solana key
run: solana-keygen new --no-bip39-passphrase
- name: Install Anchor
run: RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
# Libusb is a build requirement for the node-hid package and so pnpm
# install will fail if this isn't in the build environment and if a
# precompiled binary isn't found.
Expand Down
2 changes: 1 addition & 1 deletion lazer/contracts/solana/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extends": ["//"],
"tasks": {
"test": {
"dependsOn": ["test:format", "test:anchor"]
"dependsOn": ["test:format"]
},
"test:anchor": {}
}
Expand Down

0 comments on commit ad49514

Please sign in to comment.