Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/arkecosystem/core into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
zan.kovac1@student.um.si committed Sep 25, 2019
2 parents 2b5bc4d + bcce772 commit 067da85
Show file tree
Hide file tree
Showing 27 changed files with 273 additions and 309 deletions.
96 changes: 0 additions & 96 deletions .circleci/config.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
branches:
- "**"
pull_request:
types: [ready_for_review, opened] # add synchronize to trigger builds for PR merges with the base branch, currently causes duplicate builds as synchronize is treated the same as push for everything besides merges
types: [ready_for_review, synchronize, opened] # fix: synchronize triggers builds for PR merges with the base branch, currently causes duplicate builds as synchronize is treated the same as push for everything besides merges

jobs:
crypto:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- "**"
pull_request:
types: [ready_for_review, synchronize, opened] # synchronize triggers builds for PR merges with the base branch, currently causes duplicate builds as synchronize is treated the same as push for everything besides merges
types: [ready_for_review, synchronize, opened] # fix: synchronize triggers builds for PR merges with the base branch, currently causes duplicate builds as synchronize is treated the same as push for everything besides merges

jobs:
bridgechain-registration:
Expand All @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -318,7 +318,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -360,7 +360,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -402,7 +402,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -444,7 +444,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -486,7 +486,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -528,7 +528,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -570,7 +570,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -612,7 +612,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -654,7 +654,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -696,7 +696,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down
40 changes: 37 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
branches:
- "**"
pull_request:
types: [ready_for_review, synchronize, opened] # synchronize triggers builds for PR merges with the base branch, currently causes duplicate builds as synchronize is treated the same as push for everything besides merges
types: [ready_for_review, synchronize, opened] # fix: synchronize triggers builds for PR merges with the base branch, currently causes duplicate builds as synchronize is treated the same as push for everything besides merges

jobs:
unit:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
Expand All @@ -71,3 +71,37 @@ jobs:
POSTGRES_USER: ark
POSTGRES_PASSWORD: password
POSTGRES_DB: ark_unitnet

e2e:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Docker swarm init
run: docker swarm init
- name: Install and build packages
run: yarn setup && cd __tests__/e2e && ../../node_modules/.bin/tsc && yarn install --frozen-lockfile
- name: Generate files
run: node --version && cd __tests__/e2e && yarn generate -c 3 -v ${{ matrix.node-version }}
- name: Make scripts executable
run: sudo chmod +x __tests__/e2e/dist/docker* && sudo chmod +x __tests__/e2e/dist/node0/docker/testnet-e2e/entrypoint.sh && sudo chmod +x __tests__/e2e/dist/node1/docker/testnet-e2e/entrypoint.sh && sudo chmod +x __tests__/e2e/dist/node2/docker/testnet-e2e/entrypoint.sh && sudo chmod +x __tests__/e2e/dist/node0/ark.sh && sudo chmod +x __tests__/e2e/dist/node1/ark.sh && sudo chmod +x __tests__/e2e/dist/node2/ark.sh
- name: Docker init and start
run: cd __tests__/e2e/dist && ./docker-init.sh && ./docker-start.sh
- name: Wait 10 sec for docker containers to be up
run: sleep 10
- name: Run tests
run: cd __tests__/e2e && sudo chown -R $USER:$USER ./dist/ && yarn run-tests -s scenario1
- name: Output results - node0
run: cat __tests__/e2e/dist/node0/output.log && cat __tests__/e2e/dist/node0/errors.log
- name: Output results - node1
run: cat __tests__/e2e/dist/node1/output.log && cat __tests__/e2e/dist/node1/errors.log
- name: Output results - node2
run: cat __tests__/e2e/dist/node2/output.log && cat __tests__/e2e/dist/node2/errors.log
14 changes: 7 additions & 7 deletions __tests__/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Now to run the tests locally, you need to have Docker installed. Then, run this
You can now run the configured tests like this :

bin/e2e generate -c 3
sudo chmod +x dist/docker*
sudo chmod +x dist/node0/docker/testnet-e2e/entrypoint.sh
sudo chmod +x dist/node1/docker/testnet-e2e/entrypoint.sh
sudo chmod +x dist/node2/docker/testnet-e2e/entrypoint.sh
sudo chmod +x dist/node0/ark.sh
sudo chmod +x dist/node1/ark.sh
sudo chmod +x dist/node2/ark.sh
chmod +x dist/docker*
chmod +x dist/node0/docker/testnet-e2e/entrypoint.sh
chmod +x dist/node1/docker/testnet-e2e/entrypoint.sh
chmod +x dist/node2/docker/testnet-e2e/entrypoint.sh
chmod +x dist/node0/ark.sh
chmod +x dist/node1/ark.sh
chmod +x dist/node2/ark.sh
cd dist && ./docker-init.sh && ./docker-start.sh && cd ..
bin/e2e run-tests -s scenario1

Expand Down
Loading

0 comments on commit 067da85

Please sign in to comment.