Skip to content

test: Add Tests and Improve Test Coverage for packages/web3/src/contract #1580

test: Add Tests and Improve Test Coverage for packages/web3/src/contract

test: Add Tests and Improve Test Coverage for packages/web3/src/contract #1580

Workflow file for this run

name: Unit Test
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v4
- run: |
pushd docker
docker compose up -d
popd
SECONDS=0
sleep 5
until curl http://localhost:22973/infos/self-clique
do
if (( SECONDS > 60 ))
then
echo "Alephium full node not working after 1 min..."
exit 1
fi
echo "Waiting..."
sleep 5
done
echo ""
echo "Alephium full node is up"
sleep 5
- run: pnpm install
- run: npm run build
- run: npm run lint
- run: npm run test
- run: npm run codegen && test -z "$(git status --porcelain)"