1.0.4 #1294
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16, 18] | |
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@v3.0.0 | |
with: | |
version: 8.14 | |
- 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)" |