-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #334 from EYBlockchain/liju.jose/configure-hosted-…
…geth-for-blockchain-client configuration for hosted geth implemented
- Loading branch information
Showing
19 changed files
with
128 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: "ropsten deployment at end of every day" | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
ropsten-test: | ||
runs-on: ubuntu-18.04 | ||
environment: TESTNET_DEPLOYMENT | ||
env: | ||
ETH_PRIVATE_KEY: ${{ secrets.ETH_PRIVATE_KEY }} | ||
ROPSTEN_NODE: ${{ secrets.ROPSTEN_NODE }} | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.17.0' | ||
|
||
- name: Start Containers | ||
run: | | ||
docker-compose build | ||
./start-nightfall -r &> ropsten-test.log &disown | ||
- name: wait 7000s for Containers startup and setup completion | ||
run: sleep 7000 | ||
|
||
# kept it for future debug | ||
# - run: sleep 1000 | ||
# - name: debug logs - after container startup 1 | ||
# if: always() | ||
# run: cat ropsten-test.log | ||
|
||
# - run: sleep 1000 | ||
# - name: debug logs - after container startup 2 | ||
# if: always() | ||
# run: cat ropsten-test.log | ||
|
||
- name: Run integration test | ||
run: | | ||
npm ci | ||
npm run ropsten-test | ||
- name: debug logs - after integration test run | ||
if: always() | ||
run: cat ropsten-test.log | ||
|
||
- name: If integration test failed, shutdown the Containers | ||
if: failure() | ||
run: docker-compose down -v | ||
|
||
- name: If integration test failed, upload logs files as artifacts | ||
if: failure() | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ropsten-test-logs | ||
path: ./ropsten-test.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: '3.5' | ||
services: | ||
client1: | ||
environment: | ||
BLOCKCHAIN_URL: $ROPSTEN_NODE | ||
USE_ROPSTEN_NODE: 'true' | ||
AUTOSTART_RETRIES: 600 | ||
|
||
client2: | ||
environment: | ||
BLOCKCHAIN_URL: $ROPSTEN_NODE | ||
USE_ROPSTEN_NODE: 'true' | ||
AUTOSTART_RETRIES: 600 | ||
|
||
deployer: | ||
environment: | ||
# ETH_NETWORK sets the network selected by Truffle from truffle-config.js | ||
# startup routines will wait for a blockchain client to be reachable on this network | ||
ETH_NETWORK: ropsten | ||
BLOCKCHAIN_URL: $ROPSTEN_NODE | ||
USE_ROPSTEN_NODE: 'true' | ||
FROM_ADDRESS: ${FROM_ADDRESS:-0x29100E7E3dA6654BF63d9E7804ADe518aCc5AaA5} | ||
ETH_PRIVATE_KEY: $ETH_PRIVATE_KEY | ||
|
||
optimist1: | ||
environment: | ||
BLOCKCHAIN_URL: $ROPSTEN_NODE | ||
USE_ROPSTEN_NODE: 'true' | ||
AUTOSTART_RETRIES: 600 | ||
|
||
optimist2: | ||
environment: | ||
BLOCKCHAIN_URL: $ROPSTEN_NODE | ||
USE_ROPSTEN_NODE: 'true' | ||
AUTOSTART_RETRIES: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters