From 2cdcbf6ca5e4db9dc98789ed6b19f5fc6ff4bee0 Mon Sep 17 00:00:00 2001 From: Conner Gallagher Date: Thu, 15 Dec 2022 20:05:46 -0700 Subject: [PATCH] gh action fix --- .github/workflows/solana-js-test.yml | 4 +--- javascript/solana.js/package.json | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/solana-js-test.yml b/.github/workflows/solana-js-test.yml index 35137a8..0092e90 100644 --- a/.github/workflows/solana-js-test.yml +++ b/.github/workflows/solana-js-test.yml @@ -138,6 +138,4 @@ jobs: J7nSEX8ADf3pVVicd6yKy2Skvg8iLePEmkLUisAAaioD" - name: Run Tests working-directory: javascript/solana.js - run: - SWITCHBOARD_PROGRAM_ID=SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f npm - run test:localnet + run: npm run test:localnet:mainnet diff --git a/javascript/solana.js/package.json b/javascript/solana.js/package.json index b58a5f7..47cf34d 100644 --- a/javascript/solana.js/package.json +++ b/javascript/solana.js/package.json @@ -46,6 +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", "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",