gh action
This commit is contained in:
parent
6ffe75ac97
commit
e67a9c9e27
|
@ -141,6 +141,7 @@ jobs:
|
|||
- name: Run Tests
|
||||
working-directory: javascript/solana.js
|
||||
env:
|
||||
SWITCHBOARD_PROGRAM_ID: SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f
|
||||
SOLANA_LOCALNET: 1
|
||||
SOLANA_CLUSTER: mainnet-beta
|
||||
SWITCHBOARD_PROGRAM_ID: SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f
|
||||
run: npm run test:localnet:mainnet
|
||||
|
|
|
@ -46,7 +46,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",
|
||||
"test:localnet:mainnet": "SWITCHBOARD_PROGRAM_ID=SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f SOLANA_LOCALNET=1 node ./node_modules/mocha/bin/mocha --loader=ts-node/esm --extension ts --timeout 10000",
|
||||
"test:localnet:mainnet": "SWITCHBOARD_PROGRAM_ID=SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f SOLANA_CLUSTER=mainnet-beta SOLANA_LOCALNET=1 node ./node_modules/mocha/bin/mocha --loader=ts-node/esm --extension ts --timeout 10000",
|
||||
"localnet:up": "npm run local:validator & sleep 20 && npm run test:localnet",
|
||||
"localnet:down": "kill -9 $(pgrep command solana-test-validator) || exit 0",
|
||||
"localnet": "npm run localnet:up; npm run localnet:down",
|
||||
|
|
Loading…
Reference in New Issue