Skip to content

Commit

Permalink
Merge pull request #537 from EYBlockchain/zepedro/fixing-setup-nightfall
Browse files Browse the repository at this point in the history
Fixing setup
  • Loading branch information
ChaitanyaKonda authored Mar 4, 2022
2 parents ffef627 + 7f1122a commit 80fa457
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 23 deletions.
54 changes: 32 additions & 22 deletions .github/workflows/check-PRs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Check PR

on:
pull_request:
branch:
- master
branches: [master]

jobs:
eslint-check:
Expand All @@ -28,25 +27,28 @@ jobs:

- name: Start Containers
run: |
docker build --no-cache -t ghcr.io/eyblockchain/local-zokrates -f zokrates.Dockerfile .
docker-compose build
./setup-nightfall
./start-nightfall -g -d &> ganache-test.log &disown
- name: debug logs - after container startup
- name: Wait for images to be ready
uses: Wandalen/wretry.action@v1.0.11
with:
command: |
docker wait nightfall_3_deployer_1
attempt_limit: 100
attempt_delay: 20000

- name: Debug logs - after image builds
if: always()
run: cat ganache-test.log

- name: wait 1200s for Containers startup and setup completion
run: sleep 1200

- name: Run integration test
run: |
npm ci
docker wait nightfall_3_deployer_1
VERBOSE=true npm run test-e2e-protocol
VERBOSE=true npm run test-e2e-tokens
- name: debug logs - after integration test run
- name: Debug logs - after integration test run
if: always()
run: cat ganache-test.log

Expand Down Expand Up @@ -82,13 +84,17 @@ jobs:
if: always()
run: cat test/ping-pong/ping-pong-test.log

- name: wait 1200s for Containers startup and setup completion
run: sleep 1200
- name: Wait for images to be ready
uses: Wandalen/wretry.action@v1.0.11
with:
command: |
docker ps
docker wait ping-pong_deployer_1
attempt_limit: 100
attempt_delay: 20000

- name: Run ping-pong test
run: |
docker ps
docker wait ping-pong_deployer_1
cd test/ping-pong
./pong-apps
Expand Down Expand Up @@ -121,25 +127,29 @@ jobs:

- name: Start Containers with ganache
run: |
docker build --no-cache -t ghcr.io/eyblockchain/local-zokrates -f zokrates.Dockerfile .
docker-compose build
./start-nightfall -g &> test-gas.log &disown
./setup-nightfall
./start-nightfall -g -d &> test-gas.log &disown
env:
TRANSACTIONS_PER_BLOCK: 32

- name: wait 1500s for Containers startup and setup completion
run: sleep 1500
- name: Wait for images to be ready
uses: Wandalen/wretry.action@v1.0.11
with:
command: |
docker wait nightfall_3_deployer_1
attempt_limit: 100
attempt_delay: 20000

- name: debug logs - after container startup
- name: Debug logs - after container startup
if: always()
run: cat test-gas.log

- name: Run tx-gas.mjs test suites
run: |
npm ci
npm run test-gas
VERBOSE=true npm run test-gas
- name: debug logs - after integration test run
- name: Debug logs - after integration test run
if: always()
run: cat test-gas.log

Expand Down
2 changes: 1 addition & 1 deletion setup-nightfall
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Install node dependencies
npm ci
docker build --no-cache -t ghcr.io/eyblockchain/local-zokrates -f zokrates.Dockerfile .
docker-compose build --no-cache
docker-compose -f docker-compose.yml -f docker-compose.dev.yml build --no-cache

0 comments on commit 80fa457

Please sign in to comment.