Skip to content

Commit b9f0c00

Browse files
committed
fix ci
1 parent 0f17afa commit b9f0c00

File tree

7 files changed

+1421
-1209
lines changed

7 files changed

+1421
-1209
lines changed

.github/workflows/ci-lazer-anchor.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Lazer Solana contract test"
1+
name: "Lazer Anchor contract test"
22
on:
33
push:
44
branches:
@@ -20,16 +20,13 @@ jobs:
2020
- uses: actions-rust-lang/setup-rust-toolchain@v1
2121
with:
2222
toolchain: 1.82.0
23-
- name: install taplo
24-
run: cargo install --locked taplo-cli@0.9.3
25-
# Libusb is a build requirement for the node-hid package and so pnpm
26-
# install will fail if this isn't in the build environment and if a
27-
# precompiled binary isn't found.
28-
- name: Install libusb
29-
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
3026
- uses: pnpm/action-setup@v4
3127
name: Install pnpm
3228
with:
29+
version: 10
3330
run_install: true
3431
- name: Install Solana Cli
3532
run: |
@@ -45,4 +42,4 @@ jobs:
4542
rustup install nightly-2025-04-15
4643
RUSTFLAGS= cargo +1.79.0 install --git https://github.com/coral-xyz/anchor --tag v0.30.1 --locked anchor-cli
4744
- name: Run anchor tests
48-
run: anchor test
45+
run: pnpm run anchor:test

lazer/solana-anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ cluster = "Localnet"
1313
wallet = "~/.config/solana/id.json"
1414

1515
[scripts]
16-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
16+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

lazer/solana-anchor/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazer/solana-anchor/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"license": "ISC",
2+
"license": "ISC",
33
"scripts": {
44
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
5-
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
5+
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check",
6+
"test:anchor": "CARGO_TARGET_DIR=\"$PWD/target\" RUSTUP_TOOLCHAIN=nightly-2025-04-15 anchor test"
67
},
78
"dependencies": {
89
"@coral-xyz/anchor": "^0.30.1"

0 commit comments

Comments
 (0)