Skip to content

Commit 0a4079f

Browse files
author
Abdul Rabbani
committed
Fix two tests
1 parent 07ce01d commit 0a4079f

File tree

1 file changed

+34
-5
lines changed

1 file changed

+34
-5
lines changed

.github/workflows/tests.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,37 @@ jobs:
5353
- name: Checkout code
5454
uses: actions/checkout@v2
5555

56-
- name: Start database
57-
run: docker-compose -f docker-compose.yml up -d ipld-eth-db
56+
- uses: actions/checkout@v3
57+
with:
58+
ref: ${{ env.stack-orchestrator-ref }}
59+
path: "./stack-orchestrator/"
60+
repository: vulcanize/stack-orchestrator
61+
fetch-depth: 0
62+
63+
- uses: actions/checkout@v3
64+
with:
65+
ref: ${{ env.ipld-eth-db-ref }}
66+
repository: vulcanize/ipld-eth-db
67+
path: "./ipld-eth-db/"
68+
fetch-depth: 0
69+
70+
- name: Create config file
71+
run: |
72+
echo vulcanize_ipld_eth_db=$GITHUB_WORKSPACE/ipld-eth-db/ > $GITHUB_WORKSPACE/config.sh
73+
echo vulcanize_go_ethereum=$GITHUB_WORKSPACE/go-ethereum/ >> $GITHUB_WORKSPACE/config.sh
74+
echo db_write=true >> $GITHUB_WORKSPACE/config.sh
75+
cat $GITHUB_WORKSPACE/config.sh
76+
77+
- name: Run docker compose
78+
run: |
79+
docker-compose \
80+
-f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-db-migration.yml" \
81+
-f "$GITHUB_WORKSPACE/stack-orchestrator/docker/latest/docker-compose-timescale-db.yml" \
82+
--env-file $GITHUB_WORKSPACE/config.sh \
83+
up -d --build
84+
85+
- name: Give the migration a few seconds
86+
run: sleep 30;
5887

5988
- name: Run unit tests
6089
run: make statedifftest
@@ -106,9 +135,9 @@ jobs:
106135
- name: Run docker compose
107136
run: |
108137
docker-compose \
109-
-f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-db-migration.yml \
110-
-f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-go-ethereum4.yml \
111-
-f "$GITHUB_WORKSPACE/stack-orchestrator/docker/latest/docker-compose-timescale-db.yml \
138+
-f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-db-migration.yml" \
139+
-f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-go-ethereum4.yml" \
140+
-f "$GITHUB_WORKSPACE/stack-orchestrator/docker/latest/docker-compose-timescale-db.yml" \
112141
--env-file $GITHUB_WORKSPACE/config.sh \
113142
up -d --build
114143

0 commit comments

Comments
 (0)