ci: have properly setupped nodejs

This commit is contained in:
Adam Uhlíř 2023-04-27 15:59:36 +02:00
parent 9eabfc939a
commit 04c42ea37e
No known key found for this signature in database
GPG Key ID: 1D17A9E81F76155B
1 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@ jobs:
with: with:
submodules: recursive submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Nimbus Build System - name: Setup Nimbus Build System
uses: ./.github/actions/nimbus-build-system uses: ./.github/actions/nimbus-build-system
with: with:
@ -55,7 +59,7 @@ jobs:
fi fi
npm ci npm ci
npm start -- --verbose & npm start -- --verbose &
for i in {1..50}; do curl -s http://localhost:8545/ -X POST -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}' && break || (echo "Waiting for blockchain to startup" && sleep 1) ; done for i in {1..60}; do curl -s http://localhost:8545/ -X POST -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}' && break || (echo "Waiting for blockchain to startup" && sleep 1) ; done
- name: Contract tests - name: Contract tests
run: make -j${ncpu} testContracts run: make -j${ncpu} testContracts