File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Build
2
2
3
3
on :
4
4
push :
5
- branches : ["main"]
5
+ branches : " ** "
6
6
pull_request :
7
7
branches : ["main"]
8
8
types : [opened, reopened, edited, synchronize]
59
59
- name : Run integration tests
60
60
run : |
61
61
cd integration-test && ./run_tests.sh
62
+
63
+ - name : Dump docker logs
64
+ if : failure()
65
+ run : |
66
+ cd integration-test && docker-compose logs --no-color > integration-test.log
67
+
68
+ - name : Upload integration-test.log
69
+ if : failure()
70
+ uses : actions/upload-artifact@v2
71
+ with :
72
+ name : integration-test.log
73
+ path : integration-test/integration-test.log
Original file line number Diff line number Diff line change @@ -7,6 +7,29 @@ ROOT=$(pwd)
7
7
8
8
poetry install
9
9
10
+ # #########
11
+ # Alonzo #
12
+ # #########
13
+
14
+ # Cleanup containers and volumes in case there is any running
15
+ docker-compose down --volumes --remove-orphans
16
+
17
+ # Run alonzo integration tests
18
+ ./bootstrap.sh local-alonzo
19
+
20
+ # Launch containers
21
+ docker-compose up -d
22
+
23
+ export PAYMENT_KEY=" $ROOT " /configs/local-alonzo/shelley/utxo-keys/utxo1.skey
24
+ export EXTENDED_PAYMENT_KEY=" $ROOT " /keys/extended.skey
25
+ export POOL_ID=$( cat " $ROOT " /keys/pool/pool.id)
26
+
27
+ # Wait for stake pool to start producing blocks
28
+ sleep 20
29
+
30
+ # Cleanup
31
+ docker-compose down --volumes --remove-orphans
32
+
10
33
# ########
11
34
# Vasil #
12
35
# ########
@@ -25,7 +48,7 @@ export EXTENDED_PAYMENT_KEY="$ROOT"/keys/extended.skey
25
48
export POOL_ID=$( cat " $ROOT " /keys/pool/pool.id)
26
49
27
50
# Wait for stake pool to start producing blocks
28
- sleep 60
51
+ sleep 120
29
52
30
53
poetry run pytest -s -vv -n 4 " $ROOT " /test
31
54
You can’t perform that action at this time.
0 commit comments