Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing setup #537

Merged
merged 4 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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