solana.js: gh actions

This commit is contained in:
Conner Gallagher 2022-12-01 21:22:39 -07:00
parent d0902cf0e4
commit b8eabbb6f2
2 changed files with 2 additions and 3 deletions

View File

@ -44,5 +44,4 @@ jobs:
run: |
solana-keygen new --no-bip39-passphrase --outfile ~/.config/solana/id.json --silent
mkdir -p .anchor/test-ledger
solana-test-validator -q -r --ledger .anchor/test-ledger --mint $(solana-keygen pubkey ~/.config/solana/id.json) --bind-address 0.0.0.0 --url https://api.devnet.solana.com --rpc-port 8899 --clone 2TfB33aLaneQb5TNVwyDz3jSZXS6jdW2ARw1Dgf84XCG --clone J4CArpsbrZqu1axqQ4AnrqREs3jwoyA1M5LMiQQmAzB9 --clone CKwZcshn4XDvhaWVH9EXnk3iu19t6t5xP2Sy2pD6TRDp --clone BYM81n8HvTJuqZU1PmTVcwZ9G8uoji7FKM6EaPkwphPt --clone FVLfR6C2ckZhbSwBzZY4CX7YBcddUSge5BNeGQv5eKhy & sleep 15
npm run test:localnet
npm run localnet:up

View File

@ -41,7 +41,7 @@
"pretest": "npm run build",
"test": "node ./node_modules/mocha/bin/mocha --loader=ts-node/esm --extension ts --timeout 10000",
"test:localnet": "SOLANA_LOCALNET=1 node ./node_modules/mocha/bin/mocha --loader=ts-node/esm --extension ts --timeout 10000",
"localnet:up": "npm run local:validator & sleep 10 && npm run test:localnet; kill -9 $(pgrep command solana-test-validator)",
"localnet:up": "npm run local:validator & sleep 15 && npm run test:localnet; kill -9 $(pgrep command solana-test-validator)",
"posttest": "npm run lint",
"prepublishOnly": "shx rm -rf lib && npm run build",
"docs": "typedoc src/index.ts --githubPages --cleanOutputDir",