-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (40 loc) · 1.16 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Unit Test
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- 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: pushd simple-auction && npm install && npx @alephium/cli test && popd
- run: pushd blind-auction && npm install && npx @alephium/cli test && popd
- run: pushd dynamic-array && npm install && npx @alephium/cli test && popd
- run: pushd gasless && npm install && npx @alephium/cli test && popd