diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f7e20a203..98f00e4a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,23 +6,26 @@ jobs: test: runs-on: ubuntu-latest steps: - # ... (other steps) - - name: Install dependencies - run: pnpm install + # ... other steps ... + - name: Install pnpm + run: npm install -g pnpm - - name: Start local blockchain node - run: npx hardhat node & - # Or use npx ganache-cli --port 8545 & + - name: Install dependencies + run: pnpm install - - name: Wait for node - run: | + - name: Start local blockchain node + run: npx hardhat node & + # Or use npx ganache-cli --port 8545 & + + - name: Wait for node + run: | for i in {1..10}; do nc -z localhost 8545 && break sleep 1 done - - name: Run tests - run: pnpm run test + - name: Run tests + run: pnpm run test build: name: Run build