Skip to content

Commit

Permalink
update /ts and hello-world to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Oct 2, 2024
1 parent 361a0a0 commit 59b08ad
Show file tree
Hide file tree
Showing 6 changed files with 5,092 additions and 5,084 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ jobs:
cd /repo/contracts &&\
solana-keygen new -o id.json --no-bip39-passphrase &&\
cd /repo/ts &&\
yarn install --frozen-lockfile &&\
yarn build &&\
pnpm install --frozen-lockfile &&\
pnpm build &&\
cd /repo/contracts &&\
yarn install --frozen-lockfile &&\
pnpm install --frozen-lockfile &&\
anchor test &&\
chmod -R 755 ./target &&\
cd /repo/contracts/examples/hello-world &&\
yarn install --frozen-lockfile &&\
pnpm install --frozen-lockfile &&\
anchor test &&\
chmod -R 755 ./target"
Expand All @@ -107,7 +107,7 @@ jobs:
docker load --input docker-build.tar
- name: format contracts + artifacts
run: |
yarn install --frozen-lockfile
pnpm install --frozen-lockfile
cd ../ # back to root
make format-contracts
echo "run 'make format-contracts' if this fails"
Expand Down
2 changes: 1 addition & 1 deletion contracts/examples/hello-world/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cluster = "localnet"
wallet = "../../id.json"

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

# TODO: clone from devnet once available
[[test.genesis]]
Expand Down
Loading

0 comments on commit 59b08ad

Please sign in to comment.