From 9f2268aa8c6f781745ce7f609d9cba718a5cce30 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 11 Feb 2021 16:00:21 +0100 Subject: [PATCH 01/43] Migrate Travis CI to Github Actions --- .github/workflows/tests.yml | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..6a209e24 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,57 @@ +name: Run tests on push and pull request + +on: [push, pull-request] + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Add hosts to /etc/hosts + run: | + sudo echo "api.circles.local" | sudo tee -a /etc/hosts + sudo echo "graph.circles.local" | sudo tee -a /etc/hosts + sudo echo "relay.circles.local" | sudo tee -a /etc/hosts + + - name: Disable postgres + run: sudo /etc/init.d/postgresql stop + + - name: Get circles-docker repository and copy configs + env: + CIRCLES_DOCKER: $HOME/CirclesUBI/circles-docker + run: | + git clone https://github.com/CirclesUBI/circles-docker.git $CIRCLES_DOCKER + cd $CIRCLES_DOCKER + cp .env.example .env + + - name: Container setup via docker-compose and migrate contracts + uses: docker + run: | + make build + make up + make contracts + make subgraph + + - name: Try starting failed services + run: make up + + #- name: Copy core configs + # run: | + # cd $TRAVIS_BUILD_DIR + # cp .env.example .env + + test: + runs-on: ubuntu-latest + steps: + - name: Setup Node + uses: actions/setup-node@v2.1.0 + with: + node-version: '12.x' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm run test + + - name: Build + run: npm run test From 2e1bf70a32eb068dceb43b78a5412a5b1e41b4fe Mon Sep 17 00:00:00 2001 From: = Date: Thu, 11 Feb 2021 16:10:00 +0100 Subject: [PATCH 02/43] Syntax fix workflow tests --- .github/workflows/tests.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6a209e24..4bc3f32d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,12 +1,14 @@ name: Run tests on push and pull request -on: [push, pull-request] +on: [push, pull_request] jobs: setup: runs-on: ubuntu-latest - steps: + steps: - name: Add hosts to /etc/hosts + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' run: | sudo echo "api.circles.local" | sudo tee -a /etc/hosts sudo echo "graph.circles.local" | sudo tee -a /etc/hosts @@ -24,7 +26,6 @@ jobs: cp .env.example .env - name: Container setup via docker-compose and migrate contracts - uses: docker run: | make build make up @@ -35,9 +36,9 @@ jobs: run: make up #- name: Copy core configs - # run: | - # cd $TRAVIS_BUILD_DIR - # cp .env.example .env + # run: | + # cd $TRAVIS_BUILD_DIR + # cp .env.example .env test: runs-on: ubuntu-latest From 490852ee04599d2a583c37d6560c151e409de707 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 16 Feb 2021 16:10:58 +0100 Subject: [PATCH 03/43] Fix problems with env variables and more --- .github/workflows/tests.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4bc3f32d..a67f4bd7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,14 +1,19 @@ -name: Run tests on push and pull request +name: Run tests on: [push, pull_request] jobs: - setup: + tests: runs-on: ubuntu-latest + env: + CIRCLES_DOCKER: $HOME/CirclesUBI/circles-docker + CIRCLES_CORE: $HOME/CirclesUBI/circles-core + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + steps: - name: Add hosts to /etc/hosts - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + #env: + # ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' run: | sudo echo "api.circles.local" | sudo tee -a /etc/hosts sudo echo "graph.circles.local" | sudo tee -a /etc/hosts @@ -35,14 +40,11 @@ jobs: - name: Try starting failed services run: make up - #- name: Copy core configs - # run: | - # cd $TRAVIS_BUILD_DIR - # cp .env.example .env + - name: Copy core configs + run: | + cd $CIRCLES_CORE + cp .env.example .env - test: - runs-on: ubuntu-latest - steps: - name: Setup Node uses: actions/setup-node@v2.1.0 with: From ccb67689fb2a7f193c5720da5ab838cc2302a151 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 16 Feb 2021 16:32:51 +0100 Subject: [PATCH 04/43] Change run order, cache node modules, checkout repo --- .github/workflows/tests.yml | 50 ++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a67f4bd7..ab1c0251 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,14 +1,15 @@ name: Run tests -on: [push, pull_request] +on: [push] jobs: tests: runs-on: ubuntu-latest env: - CIRCLES_DOCKER: $HOME/CirclesUBI/circles-docker - CIRCLES_CORE: $HOME/CirclesUBI/circles-core + CIRCLES_DOCKER: $/home/runner/work/circles-docker/circles-docker #$HOME/CirclesUBI/circles-docker + CIRCLES_CORE: $/home/runner/work/circles-core/circles-core ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + DOCKER_COMPOSE: docker-compose -f docker-compose.yml -f docker-compose.frontend.yml -p circles steps: - name: Add hosts to /etc/hosts @@ -22,34 +23,49 @@ jobs: - name: Disable postgres run: sudo /etc/init.d/postgresql stop + - name: Check out repository code + uses: actions/checkout@v2 + + - name: Copy core configs + run: cp .env.example .env + - name: Get circles-docker repository and copy configs - env: - CIRCLES_DOCKER: $HOME/CirclesUBI/circles-docker - run: | - git clone https://github.com/CirclesUBI/circles-docker.git $CIRCLES_DOCKER - cd $CIRCLES_DOCKER - cp .env.example .env + uses: actions/checkout@v2 + with: + repository: CirclesUBI/circles-docker.git + ref: main + + - name: Setup docker repo + run: cp .env.example .env - name: Container setup via docker-compose and migrate contracts run: | - make build - make up - make contracts - make subgraph + $DOCKER_COMPOSE build + $DOCKER_COMPOSE up + $DOCKER_COMPOSE contracts + $DOCKER_COMPOSE subgraph - name: Try starting failed services run: make up - - name: Copy core configs - run: | - cd $CIRCLES_CORE - cp .env.example .env + - name: Switch to circles-core + run: cd $CIRCLES_CORE - name: Setup Node uses: actions/setup-node@v2.1.0 with: node-version: '12.x' + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- + - name: Install dependencies run: npm install From a0f9475569b080d4d5714977339e7bf32986f9f1 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 23 Feb 2021 14:52:30 +0100 Subject: [PATCH 05/43] Change github actions to run containers detatteched instead with flag -d --- .github/workflows/tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ab1c0251..3d5569a8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,8 +13,6 @@ jobs: steps: - name: Add hosts to /etc/hosts - #env: - # ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' run: | sudo echo "api.circles.local" | sudo tee -a /etc/hosts sudo echo "graph.circles.local" | sudo tee -a /etc/hosts @@ -41,7 +39,7 @@ jobs: - name: Container setup via docker-compose and migrate contracts run: | $DOCKER_COMPOSE build - $DOCKER_COMPOSE up + $DOCKER_COMPOSE up -d $DOCKER_COMPOSE contracts $DOCKER_COMPOSE subgraph From 9e4ce52b6886eee716bdf80808201c177fdb1873 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 26 Feb 2021 11:49:56 +0100 Subject: [PATCH 06/43] Checkout contracts and subgraph repos in github actions before tests --- .github/workflows/tests.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3d5569a8..f6e7254d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,18 @@ jobs: - name: Copy core configs run: cp .env.example .env + - name: Get circles-docker repository and copy configs + uses: actions/checkout@v2 + with: + repository: CirclesUBI/circles-contracts.git + ref: main + + - name: Get circles-docker repository and copy configs + uses: actions/checkout@v2 + with: + repository: CirclesUBI/circles-subgraph.git + ref: main + - name: Get circles-docker repository and copy configs uses: actions/checkout@v2 with: From 9b61b50ac0037d45e95c238a099417014faca575 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 26 Feb 2021 12:01:36 +0100 Subject: [PATCH 07/43] Checkout contracts with correct branch master in github actions --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f6e7254d..9a014af5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,13 +27,13 @@ jobs: - name: Copy core configs run: cp .env.example .env - - name: Get circles-docker repository and copy configs + - name: Get circles-contracts repository and copy configs uses: actions/checkout@v2 with: repository: CirclesUBI/circles-contracts.git - ref: main + ref: master - - name: Get circles-docker repository and copy configs + - name: Get circles-subgraph repository and copy configs uses: actions/checkout@v2 with: repository: CirclesUBI/circles-subgraph.git From 9bb82de0410c24d9d4c85c493b4e3a0413aeb011 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 26 Feb 2021 12:17:07 +0100 Subject: [PATCH 08/43] Correct commands --- .github/workflows/tests.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a014af5..3979ff1d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,18 +27,6 @@ jobs: - name: Copy core configs run: cp .env.example .env - - name: Get circles-contracts repository and copy configs - uses: actions/checkout@v2 - with: - repository: CirclesUBI/circles-contracts.git - ref: master - - - name: Get circles-subgraph repository and copy configs - uses: actions/checkout@v2 - with: - repository: CirclesUBI/circles-subgraph.git - ref: main - - name: Get circles-docker repository and copy configs uses: actions/checkout@v2 with: @@ -52,8 +40,8 @@ jobs: run: | $DOCKER_COMPOSE build $DOCKER_COMPOSE up -d - $DOCKER_COMPOSE contracts - $DOCKER_COMPOSE subgraph + ./scripts/migrate-contracts.sh + ./scripts/deploy-subgraph.sh - name: Try starting failed services run: make up From 4276afe63b87c05cc6f5e6ec61431d0f649d4c4d Mon Sep 17 00:00:00 2001 From: = Date: Fri, 26 Feb 2021 14:19:09 +0100 Subject: [PATCH 09/43] Add clearer steps in github actions for tests --- .github/workflows/tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3979ff1d..2efe367e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,11 +40,15 @@ jobs: run: | $DOCKER_COMPOSE build $DOCKER_COMPOSE up -d - ./scripts/migrate-contracts.sh - ./scripts/deploy-subgraph.sh + + - name: Download and migrate contracts + run: ./scripts/migrate-contracts.sh + + - name: Create and deploy subgraph + run: ./scripts/deploy-subgraph.sh - name: Try starting failed services - run: make up + run: $DOCKER_COMPOSE up -d - name: Switch to circles-core run: cd $CIRCLES_CORE From 6b2a2d6675453cfd4f5ef3248f7678f09964ea8f Mon Sep 17 00:00:00 2001 From: = Date: Tue, 2 Mar 2021 12:17:03 +0100 Subject: [PATCH 10/43] Change order of steps in github workflow --- .github/workflows/tests.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2efe367e..2bb17804 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,21 @@ jobs: - name: Copy core configs run: cp .env.example .env + - name: Setup Node + uses: actions/setup-node@v2.1.0 + with: + node-version: '12.x' + + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- + - name: Get circles-docker repository and copy configs uses: actions/checkout@v2 with: @@ -36,7 +51,7 @@ jobs: - name: Setup docker repo run: cp .env.example .env - - name: Container setup via docker-compose and migrate contracts + - name: Container setup via docker-compose run: | $DOCKER_COMPOSE build $DOCKER_COMPOSE up -d @@ -53,21 +68,6 @@ jobs: - name: Switch to circles-core run: cd $CIRCLES_CORE - - name: Setup Node - uses: actions/setup-node@v2.1.0 - with: - node-version: '12.x' - - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- - - name: Install dependencies run: npm install From dbb491ce2517cdb1f37a71e256f407d8695f143e Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Fri, 5 Mar 2021 09:41:22 +0100 Subject: [PATCH 11/43] Remove postgresql from tests GHAction --- .github/workflows/tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2bb17804..23fb6bd4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,9 +18,6 @@ jobs: sudo echo "graph.circles.local" | sudo tee -a /etc/hosts sudo echo "relay.circles.local" | sudo tee -a /etc/hosts - - name: Disable postgres - run: sudo /etc/init.d/postgresql stop - - name: Check out repository code uses: actions/checkout@v2 From 7e00db2ad7a1f03aac770cf1c6c794c3bd1ed17e Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Fri, 5 Mar 2021 09:45:12 +0100 Subject: [PATCH 12/43] Check postgresql status in tests GHAction --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 23fb6bd4..7678a031 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,6 +18,9 @@ jobs: sudo echo "graph.circles.local" | sudo tee -a /etc/hosts sudo echo "relay.circles.local" | sudo tee -a /etc/hosts + - name: Check postgres status + run: sudo /etc/init.d/postgresql status + - name: Check out repository code uses: actions/checkout@v2 From dfcc2faf0bf0c739dde97caa64bdbc71cf61f95a Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Fri, 5 Mar 2021 10:46:10 +0100 Subject: [PATCH 13/43] Use the node version in .nvmrc for GH Actions --- .github/workflows/tests.yml | 10 +++++++--- .nvmrc | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7678a031..73a12077 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,10 +27,14 @@ jobs: - name: Copy core configs run: cp .env.example .env - - name: Setup Node - uses: actions/setup-node@v2.1.0 + - name: Read node version from .nvmrc + id: nvmrc + run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) + + - name: Setup node + uses: actions/setup-node@v2 with: - node-version: '12.x' + node-version: '${{ steps.nvmrc.outputs.NODE_VERSION }}' - name: Cache Node.js modules uses: actions/cache@v2 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..e600bc61 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +12.21 From 11c6cd9b7866b8cf284ef567fb1c09f9e2a89430 Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Fri, 5 Mar 2021 10:49:12 +0100 Subject: [PATCH 14/43] Remove postgresql from tests GHAction, again --- .github/workflows/tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 73a12077..2a1793dd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,9 +18,6 @@ jobs: sudo echo "graph.circles.local" | sudo tee -a /etc/hosts sudo echo "relay.circles.local" | sudo tee -a /etc/hosts - - name: Check postgres status - run: sudo /etc/init.d/postgresql status - - name: Check out repository code uses: actions/checkout@v2 From db29728787c6c724e519ab7565d0aa886d31d5a6 Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Mon, 8 Mar 2021 15:02:09 +0100 Subject: [PATCH 15/43] Add full path to .env files --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a1793dd..6bc975ad 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v2 - name: Copy core configs - run: cp .env.example .env + run: cp $CIRCLES_CORE/.env.example $CIRCLES_CORE/.env - name: Read node version from .nvmrc id: nvmrc @@ -50,7 +50,7 @@ jobs: ref: main - name: Setup docker repo - run: cp .env.example .env + run: cp $CIRCLES_DOCKER/.env.example $CIRCLES_DOCKER/.env - name: Container setup via docker-compose run: | From f43c15f584d280d3fdd3b5a642ec88f65ac5dc05 Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Mon, 8 Mar 2021 15:03:49 +0100 Subject: [PATCH 16/43] Remove full path to .env files --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6bc975ad..2a1793dd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v2 - name: Copy core configs - run: cp $CIRCLES_CORE/.env.example $CIRCLES_CORE/.env + run: cp .env.example .env - name: Read node version from .nvmrc id: nvmrc @@ -50,7 +50,7 @@ jobs: ref: main - name: Setup docker repo - run: cp $CIRCLES_DOCKER/.env.example $CIRCLES_DOCKER/.env + run: cp .env.example .env - name: Container setup via docker-compose run: | From b7e1208d2a0ecaead944743710dcbcdc9ea74861 Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Mon, 8 Mar 2021 15:13:11 +0100 Subject: [PATCH 17/43] Set up path for circles-docker actions/checkout in tests workflow --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a1793dd..6e26d331 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,6 +48,7 @@ jobs: with: repository: CirclesUBI/circles-docker.git ref: main + path: $CIRCLES_DOCKER - name: Setup docker repo run: cp .env.example .env From ad5fe195befaa50691deb85829e7d026ba503e94 Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Mon, 8 Mar 2021 15:26:21 +0100 Subject: [PATCH 18/43] Test working directories in tests workflow --- .github/workflows/tests.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6e26d331..f46af47b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: tests: runs-on: ubuntu-latest env: - CIRCLES_DOCKER: $/home/runner/work/circles-docker/circles-docker #$HOME/CirclesUBI/circles-docker + CIRCLES_DOCKER: $/home/runner/work/circles-core/circles-docker #$HOME/CirclesUBI/circles-docker CIRCLES_CORE: $/home/runner/work/circles-core/circles-core ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' DOCKER_COMPOSE: docker-compose -f docker-compose.yml -f docker-compose.frontend.yml -p circles @@ -18,8 +18,15 @@ jobs: sudo echo "graph.circles.local" | sudo tee -a /etc/hosts sudo echo "relay.circles.local" | sudo tee -a /etc/hosts + - name: Print workspace path + run: echo $GITHUB_WORKSPACE + - name: Check out repository code uses: actions/checkout@v2 + path: circles-core + + - name: Print workspace path + run: echo $GITHUB_WORKSPACE - name: Copy core configs run: cp .env.example .env @@ -48,7 +55,7 @@ jobs: with: repository: CirclesUBI/circles-docker.git ref: main - path: $CIRCLES_DOCKER + path: circles-docker - name: Setup docker repo run: cp .env.example .env From c109a14fe05f0990ad9b83fef59fc73e83aacf96 Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Mon, 8 Mar 2021 15:31:08 +0100 Subject: [PATCH 19/43] Remove path from actions/checkout in tests workflow --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f46af47b..fa0fb01f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,6 @@ jobs: - name: Check out repository code uses: actions/checkout@v2 - path: circles-core - name: Print workspace path run: echo $GITHUB_WORKSPACE From 3d0e63e7549aa7e7e4d23c8a44ee3209a1db9cc2 Mon Sep 17 00:00:00 2001 From: llunaCreixent Date: Mon, 8 Mar 2021 15:44:04 +0100 Subject: [PATCH 20/43] Try setting path to actions/checkout --- .github/workflows/tests.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fa0fb01f..c3dc3b78 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,14 +19,11 @@ jobs: sudo echo "relay.circles.local" | sudo tee -a /etc/hosts - name: Print workspace path - run: echo $GITHUB_WORKSPACE + run: echo $GITHUB_WORKSPACE # /home/runner/work/circles-core/circles-core - name: Check out repository code uses: actions/checkout@v2 - - name: Print workspace path - run: echo $GITHUB_WORKSPACE - - name: Copy core configs run: cp .env.example .env @@ -54,7 +51,7 @@ jobs: with: repository: CirclesUBI/circles-docker.git ref: main - path: circles-docker + path: ../circles-docker - name: Setup docker repo run: cp .env.example .env From 43afb40e86ace0f0b115646c996de569c4a81cbb Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 11:52:21 +0100 Subject: [PATCH 21/43] Try parallell paths to repos under github workspace --- .github/workflows/tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c3dc3b78..fd625cc5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,8 +21,13 @@ jobs: - name: Print workspace path run: echo $GITHUB_WORKSPACE # /home/runner/work/circles-core/circles-core - - name: Check out repository code + - name: Make directories circles-core and circles-docker + run: mkdir circles-core && mkdir circles-docker + + - name: Check out circles-core repository code uses: actions/checkout@v2 + with: + path: circles-core - name: Copy core configs run: cp .env.example .env @@ -51,7 +56,7 @@ jobs: with: repository: CirclesUBI/circles-docker.git ref: main - path: ../circles-docker + path: circles-docker - name: Setup docker repo run: cp .env.example .env From b893c5b177f5e9b48214d87625e5751af694c0fc Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 11:58:48 +0100 Subject: [PATCH 22/43] Add working directory to step - try --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fd625cc5..6f405048 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,8 +6,8 @@ jobs: tests: runs-on: ubuntu-latest env: - CIRCLES_DOCKER: $/home/runner/work/circles-core/circles-docker #$HOME/CirclesUBI/circles-docker - CIRCLES_CORE: $/home/runner/work/circles-core/circles-core + CIRCLES_DOCKER: $/home/runner/work/circles-core/circles-core/circles-docker #$HOME/CirclesUBI/circles-docker + CIRCLES_CORE: $/home/runner/work/circles-core/circles-core/circles-core ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' DOCKER_COMPOSE: docker-compose -f docker-compose.yml -f docker-compose.frontend.yml -p circles @@ -30,6 +30,7 @@ jobs: path: circles-core - name: Copy core configs + working-directory: $CIRCLES_CORE run: cp .env.example .env - name: Read node version from .nvmrc From 220c2f708f82cbc3972a8bdd17e234497690f415 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 12:01:51 +0100 Subject: [PATCH 23/43] Print working dir before copying config in core --- .github/workflows/tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6f405048..a127d552 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: run: echo $GITHUB_WORKSPACE # /home/runner/work/circles-core/circles-core - name: Make directories circles-core and circles-docker - run: mkdir circles-core && mkdir circles-docker + run: mkdir circles-core && mkdir circles-docker # Try to remove later - name: Check out circles-core repository code uses: actions/checkout@v2 @@ -31,7 +31,9 @@ jobs: - name: Copy core configs working-directory: $CIRCLES_CORE - run: cp .env.example .env + run: | + pwd + cp .env.example .env - name: Read node version from .nvmrc id: nvmrc From cfcb750144bfb7a87aa910ba6c2fe69d765b5133 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 12:05:41 +0100 Subject: [PATCH 24/43] Print directory before copying core config --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a127d552..89d45fc9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,11 +29,11 @@ jobs: with: path: circles-core + - run: ls -al + - name: Copy core configs working-directory: $CIRCLES_CORE - run: | - pwd - cp .env.example .env + run: cp .env.example .env - name: Read node version from .nvmrc id: nvmrc From cb91d1b4dbb951168265944e90b6f33c46accde7 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 12:10:20 +0100 Subject: [PATCH 25/43] Print circles-core dir --- .github/workflows/tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 89d45fc9..2609f8e2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,7 +29,9 @@ jobs: with: path: circles-core - - run: ls -al + - name: Print path + working-directory: $CIRCLES_CORE + run: cd $CIRCLES_CORE && ls -a - name: Copy core configs working-directory: $CIRCLES_CORE From 963e54f8eff6037c3c70b7b248f1f746c58d0f05 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 12:14:19 +0100 Subject: [PATCH 26/43] Print circles-core dir correctly --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2609f8e2..9bdeb53c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ jobs: - name: Print path working-directory: $CIRCLES_CORE - run: cd $CIRCLES_CORE && ls -a + run: ls -a - name: Copy core configs working-directory: $CIRCLES_CORE From bb921f9a74e20bec9e854d8a32dedab380d45fb0 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 12:17:42 +0100 Subject: [PATCH 27/43] Change working dir to only circles-core --- .github/workflows/tests.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9bdeb53c..2a8649b9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,8 +21,8 @@ jobs: - name: Print workspace path run: echo $GITHUB_WORKSPACE # /home/runner/work/circles-core/circles-core - - name: Make directories circles-core and circles-docker - run: mkdir circles-core && mkdir circles-docker # Try to remove later + #- name: Make directories circles-core and circles-docker + # run: mkdir circles-core && mkdir circles-docker # Try to remove later - name: Check out circles-core repository code uses: actions/checkout@v2 @@ -30,11 +30,10 @@ jobs: path: circles-core - name: Print path - working-directory: $CIRCLES_CORE run: ls -a - name: Copy core configs - working-directory: $CIRCLES_CORE + working-directory: circles-core run: cp .env.example .env - name: Read node version from .nvmrc From 1c3fffe0ee9b8a20e6998cbb75ef4f186de2c1ac Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 12:19:39 +0100 Subject: [PATCH 28/43] Add working directory to circles docker --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a8649b9..8c706dfa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,6 +63,7 @@ jobs: path: circles-docker - name: Setup docker repo + working-directory: circles-docker run: cp .env.example .env - name: Container setup via docker-compose From 92b901230e92ffd138f35d210d5d44b7cc8a5c09 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 12:22:48 +0100 Subject: [PATCH 29/43] Add working dir for nvmrc --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8c706dfa..143c5407 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,6 +37,7 @@ jobs: run: cp .env.example .env - name: Read node version from .nvmrc + working-directory: circles-core id: nvmrc run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) From a70c46aa3288edd769506aee53ab626e1783bccb Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 12:30:24 +0100 Subject: [PATCH 30/43] Add working directory to all steps where relevant --- .github/workflows/tests.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 143c5407..3f35846b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,8 +6,8 @@ jobs: tests: runs-on: ubuntu-latest env: - CIRCLES_DOCKER: $/home/runner/work/circles-core/circles-core/circles-docker #$HOME/CirclesUBI/circles-docker - CIRCLES_CORE: $/home/runner/work/circles-core/circles-core/circles-core + #CIRCLES_DOCKER: $/home/runner/work/circles-core/circles-core/circles-docker #$HOME/CirclesUBI/circles-docker + #CIRCLES_CORE: $/home/runner/work/circles-core/circles-core/circles-core ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' DOCKER_COMPOSE: docker-compose -f docker-compose.yml -f docker-compose.frontend.yml -p circles @@ -68,27 +68,31 @@ jobs: run: cp .env.example .env - name: Container setup via docker-compose + working-directory: circles-docker run: | $DOCKER_COMPOSE build $DOCKER_COMPOSE up -d - name: Download and migrate contracts + working-directory: circles-docker run: ./scripts/migrate-contracts.sh - name: Create and deploy subgraph + working-directory: circles-docker run: ./scripts/deploy-subgraph.sh - name: Try starting failed services + working-directory: circles-docker run: $DOCKER_COMPOSE up -d - - name: Switch to circles-core - run: cd $CIRCLES_CORE - - name: Install dependencies + working-directory: circles-core run: npm install - name: Run tests + working-directory: circles-core run: npm run test - name: Build + working-directory: circles-core run: npm run test From 1f75c66e06ab73c71629c0c7d135c52135c0a730 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 Mar 2021 19:19:54 +0100 Subject: [PATCH 31/43] Add IP address in etc hosts and remove some comments --- .github/workflows/tests.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3f35846b..5e43d9ca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,32 +6,21 @@ jobs: tests: runs-on: ubuntu-latest env: - #CIRCLES_DOCKER: $/home/runner/work/circles-core/circles-core/circles-docker #$HOME/CirclesUBI/circles-docker - #CIRCLES_CORE: $/home/runner/work/circles-core/circles-core/circles-core ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' DOCKER_COMPOSE: docker-compose -f docker-compose.yml -f docker-compose.frontend.yml -p circles steps: - name: Add hosts to /etc/hosts run: | - sudo echo "api.circles.local" | sudo tee -a /etc/hosts - sudo echo "graph.circles.local" | sudo tee -a /etc/hosts - sudo echo "relay.circles.local" | sudo tee -a /etc/hosts - - - name: Print workspace path - run: echo $GITHUB_WORKSPACE # /home/runner/work/circles-core/circles-core - - #- name: Make directories circles-core and circles-docker - # run: mkdir circles-core && mkdir circles-docker # Try to remove later + sudo echo "127.0.1.1 api.circles.local" | sudo tee -a /etc/hosts + sudo echo "127.0.1.1 graph.circles.local" | sudo tee -a /etc/hosts + sudo echo "127.0.1.1 relay.circles.local" | sudo tee -a /etc/hosts - name: Check out circles-core repository code uses: actions/checkout@v2 with: path: circles-core - - name: Print path - run: ls -a - - name: Copy core configs working-directory: circles-core run: cp .env.example .env From cd68ba195ba1de89880089aab5ca036f6f64d6f2 Mon Sep 17 00:00:00 2001 From: louilinn Date: Mon, 22 Mar 2021 14:47:17 +0100 Subject: [PATCH 32/43] Setup tmate session for debugging --- .github/workflows/tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5e43d9ca..2e0bfeb2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -55,6 +55,12 @@ jobs: - name: Setup docker repo working-directory: circles-docker run: cp .env.example .env + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + sudo: false + timeout-minutes: 15 - name: Container setup via docker-compose working-directory: circles-docker From b495cdea42edcd0198be014abdde67da68a7ae10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louise=20Linn=C3=A9?= Date: Tue, 23 Mar 2021 09:36:47 +0100 Subject: [PATCH 33/43] Chage tmate timeout to 20 min --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2e0bfeb2..a16ceedc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,7 +60,7 @@ jobs: uses: mxschmitt/action-tmate@v3 with: sudo: false - timeout-minutes: 15 + timeout-minutes: 20 - name: Container setup via docker-compose working-directory: circles-docker From 459abfa315403df41baeed3a3bbd1517d9b7ddef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louise=20Linn=C3=A9?= Date: Tue, 23 Mar 2021 09:39:53 +0100 Subject: [PATCH 34/43] Remove without sudo --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a16ceedc..ff43ff06 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,8 +58,8 @@ jobs: - name: Setup tmate session uses: mxschmitt/action-tmate@v3 - with: - sudo: false + # with: + # sudo: false timeout-minutes: 20 - name: Container setup via docker-compose From d366b738c0463216b75276f4d67c7e0953d50f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louise=20Linn=C3=A9?= Date: Tue, 23 Mar 2021 09:45:42 +0100 Subject: [PATCH 35/43] Remove timeout --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ff43ff06..90c6f375 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,7 +60,7 @@ jobs: uses: mxschmitt/action-tmate@v3 # with: # sudo: false - timeout-minutes: 20 + # timeout-minutes: 20 - name: Container setup via docker-compose working-directory: circles-docker From c572bf913c6b3c2c0342b8a48d4d1e90f2957fcd Mon Sep 17 00:00:00 2001 From: louilinn Date: Thu, 25 Mar 2021 14:45:31 +0100 Subject: [PATCH 36/43] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 90c6f375..1498545a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,7 +56,7 @@ jobs: working-directory: circles-docker run: cp .env.example .env - - name: Setup tmate session + - name: Setup tmate session uses: mxschmitt/action-tmate@v3 # with: # sudo: false From d2ac7baab7aece3bb7b1ead4c17b60e638eb6873 Mon Sep 17 00:00:00 2001 From: louilinn Date: Thu, 25 Mar 2021 14:53:10 +0100 Subject: [PATCH 37/43] Add timeout tmate 80 min --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1498545a..3dd297fc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,7 +60,7 @@ jobs: uses: mxschmitt/action-tmate@v3 # with: # sudo: false - # timeout-minutes: 20 + timeout-minutes: 80 - name: Container setup via docker-compose working-directory: circles-docker From a161f3e98181c276f0517105f2065e2de22b6259 Mon Sep 17 00:00:00 2001 From: louilinn Date: Thu, 25 Mar 2021 15:02:35 +0100 Subject: [PATCH 38/43] Change docker commands --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3dd297fc..5cd87f28 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -65,8 +65,9 @@ jobs: - name: Container setup via docker-compose working-directory: circles-docker run: | - $DOCKER_COMPOSE build - $DOCKER_COMPOSE up -d + docker-compose -f docker-compose.yml -f docker-compose.relayer-pull.yml -f docker-compose.api-pull.yml -p circles up --detach --remove-orphans --build + # $DOCKER_COMPOSE build + # $DOCKER_COMPOSE up -d - name: Download and migrate contracts working-directory: circles-docker From 5391777c32dc168bb4e0af9c883213ccb861a59f Mon Sep 17 00:00:00 2001 From: louilinn Date: Mon, 29 Mar 2021 09:28:13 +0200 Subject: [PATCH 39/43] Change to correct docker commands --- .github/workflows/tests.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5cd87f28..6edb841a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,16 +58,11 @@ jobs: - name: Setup tmate session uses: mxschmitt/action-tmate@v3 - # with: - # sudo: false timeout-minutes: 80 - name: Container setup via docker-compose working-directory: circles-docker - run: | - docker-compose -f docker-compose.yml -f docker-compose.relayer-pull.yml -f docker-compose.api-pull.yml -p circles up --detach --remove-orphans --build - # $DOCKER_COMPOSE build - # $DOCKER_COMPOSE up -d + run: docker-compose -f docker-compose.yml -f docker-compose.relayer-pull.yml -f docker-compose.api-pull.yml -p circles up --detach --remove-orphans --build - name: Download and migrate contracts working-directory: circles-docker @@ -79,7 +74,8 @@ jobs: - name: Try starting failed services working-directory: circles-docker - run: $DOCKER_COMPOSE up -d + run: docker-compose -f docker-compose.yml -f docker-compose.relayer-pull.yml -f docker-compose.api-pull.yml -p circles up --detach --remove-orphans --build + - name: Install dependencies working-directory: circles-core From f29e71e598310500a54943ba112666ab5aeb4f2a Mon Sep 17 00:00:00 2001 From: louilinn Date: Mon, 29 Mar 2021 11:08:36 +0200 Subject: [PATCH 40/43] Update tests.yml --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6edb841a..d3bbd9da 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -76,7 +76,6 @@ jobs: working-directory: circles-docker run: docker-compose -f docker-compose.yml -f docker-compose.relayer-pull.yml -f docker-compose.api-pull.yml -p circles up --detach --remove-orphans --build - - name: Install dependencies working-directory: circles-core run: npm install From f65075925619f51205b1244ed590a275f3fe5038 Mon Sep 17 00:00:00 2001 From: Andreas Dzialocha Date: Wed, 7 Apr 2021 18:19:08 +0200 Subject: [PATCH 41/43] Remove tmate session --- .github/workflows/tests.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d3bbd9da..d29dbe62 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -55,10 +55,6 @@ jobs: - name: Setup docker repo working-directory: circles-docker run: cp .env.example .env - - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - timeout-minutes: 80 - name: Container setup via docker-compose working-directory: circles-docker From eaadaecbea85af8d6a0d75e69e3a88858a225d43 Mon Sep 17 00:00:00 2001 From: Andreas Dzialocha Date: Thu, 8 Apr 2021 10:51:57 +0200 Subject: [PATCH 42/43] Try running tests in series --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cfcf285e..4c6b8f55 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "docs:serve": "documentation serve --watch ./src/**", "docs:lint": "documentation lint ./src/**", "lint": "eslint --ignore-path .gitignore --ignore-pattern lib .", - "test": "jest", + "test": "jest --runInBand", "test:watch": "npm run test -- --watch" }, "devDependencies": { From f36b49b43fb9f2e3ee1567c8ebb99e585cd21d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louise=20Linn=C3=A9?= Date: Thu, 8 Apr 2021 15:33:26 +0200 Subject: [PATCH 43/43] Remove travis file --- .travis.yml | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 939c573e..00000000 --- a/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -language: node_js - -addons: - hosts: - - api.circles.local - - graph.circles.local - - relay.circles.local - -services: - - docker - -node_js: - - '12' - -env: - - CIRCLES_DOCKER=$HOME/CirclesUBI/circles-docker - -before_install: - # disable travis postgres - - sudo /etc/init.d/postgresql stop - - # get circles-docker repository and copy configs - - git clone https://github.com/CirclesUBI/circles-docker.git $CIRCLES_DOCKER - - cd $CIRCLES_DOCKER - - cp .env.example .env - - # container setup via docker-compose and migrate contracts - - make build - - make up - - make contracts - - make subgraph - - # try starting failed services - - make up - - # copy core configs - - cd $TRAVIS_BUILD_DIR - - cp .env.example .env - -install: - - npm install - -script: - - npm run test - - npm run build