-
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 #606 from EYBlockchain/liju.jose/remove-browser-e2…
…e-test-github-actions-workflow remove browser e2e test GitHub actions workflow
- Loading branch information
Showing
3 changed files
with
96 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
name: Browser e2e test | ||
|
||
on: | ||
pull_request: | ||
branch: | ||
- master | ||
|
||
jobs: | ||
e2e-test: | ||
runs-on: ubuntu-18.04 | ||
environment: AWS | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.17.0' | ||
|
||
- name: Start Containers | ||
run: | | ||
npm ci | ||
docker-compose -f docker-compose.dev.yml build | ||
./start-nightfall -g -d -s &> docker-compose.log &disown | ||
env: | ||
AWS_ACCESS_KEY: ${{ secrets.ACCESS_KEY }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }} | ||
|
||
- name: wait 1000s for Containers startup and setup completion | ||
run: sleep 1000 | ||
|
||
- name: container logs | ||
if: always() | ||
run: cat docker-compose.log | ||
|
||
- name: Setup proposer | ||
run: cd cli && npm ci | ||
|
||
- name: Run proposer | ||
run: | | ||
./proposer > proposer.log &disown | ||
sleep 200 | ||
- name: proposer script log | ||
if: always() | ||
run: cat proposer.log | ||
|
||
- name: Setup browser app | ||
run: | | ||
cd wallet/ | ||
npm ci | ||
- name: Start browser app | ||
run: | | ||
cd wallet/ | ||
npm start &> browser-app.log &disown | ||
sleep 400 | ||
- name: debug logs - browser startup | ||
if: always() | ||
run: cat wallet/browser-app.log | ||
|
||
# in local machine | ||
# NETWORK_NAME=ganache-nightfall RPC_URL=http://localhost:8546 CHAIN_ID=1337 PRIVATE_KEY=0x4775af73d6dc84a0ae76f8726bda4b9ecf187c377229cb39e1afa7a18236a69e npm run e2e-test | ||
- name: Run e2e test | ||
run: cd wallet && npm run e2e-test | ||
env: | ||
NETWORK_NAME: 'ganache-nightfall' | ||
RPC_URL: 'http://localhost:8546' | ||
CHAIN_ID: 1337 | ||
PRIVATE_KEY: '0x4775af73d6dc84a0ae76f8726bda4b9ecf187c377229cb39e1afa7a18236a69e' | ||
|
||
- name: test video | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: e2e-video | ||
path: wallet/tests/e2e/videos/e2e-spec.js.mp4 | ||
|
||
- name: debug logs - Container log after e2ee test run | ||
if: always() | ||
run: cat docker-compose.log | ||
# name: Browser e2e test | ||
# | ||
# on: | ||
# pull_request: | ||
# branch: | ||
# - master | ||
# | ||
# jobs: | ||
# e2e-test: | ||
# runs-on: ubuntu-18.04 | ||
# environment: AWS | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# - uses: actions/setup-node@v1 | ||
# with: | ||
# node-version: '14.17.0' | ||
# | ||
# - name: Start Containers | ||
# run: | | ||
# npm ci | ||
# docker-compose -f docker-compose.dev.yml build | ||
# ./start-nightfall -g -d -s &> docker-compose.log &disown | ||
# env: | ||
# AWS_ACCESS_KEY: ${{ secrets.ACCESS_KEY }} | ||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }} | ||
# | ||
# - name: wait 1000s for Containers startup and setup completion | ||
# run: sleep 1000 | ||
# | ||
# - name: container logs | ||
# if: always() | ||
# run: cat docker-compose.log | ||
# | ||
# - name: Setup proposer | ||
# run: cd cli && npm ci | ||
# | ||
# - name: Run proposer | ||
# run: | | ||
# ./proposer > proposer.log &disown | ||
# sleep 200 | ||
# | ||
# - name: proposer script log | ||
# if: always() | ||
# run: cat proposer.log | ||
# | ||
# - name: Setup browser app | ||
# run: | | ||
# cd wallet/ | ||
# npm ci | ||
# | ||
# - name: Start browser app | ||
# run: | | ||
# cd wallet/ | ||
# npm start &> browser-app.log &disown | ||
# sleep 400 | ||
# | ||
# - name: debug logs - browser startup | ||
# if: always() | ||
# run: cat wallet/browser-app.log | ||
# | ||
# # in local machine | ||
# # NETWORK_NAME=ganache-nightfall RPC_URL=http://localhost:8546 CHAIN_ID=1337 PRIVATE_KEY=0x4775af73d6dc84a0ae76f8726bda4b9ecf187c377229cb39e1afa7a18236a69e npm run e2e-test | ||
# - name: Run e2e test | ||
# run: cd wallet && npm run e2e-test | ||
# env: | ||
# NETWORK_NAME: 'ganache-nightfall' | ||
# RPC_URL: 'http://localhost:8546' | ||
# CHAIN_ID: 1337 | ||
# PRIVATE_KEY: '0x4775af73d6dc84a0ae76f8726bda4b9ecf187c377229cb39e1afa7a18236a69e' | ||
# | ||
# - name: test video | ||
# if: always() | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: e2e-video | ||
# path: wallet/tests/e2e/videos/e2e-spec.js.mp4 | ||
# | ||
# - name: debug logs - Container log after e2ee test run | ||
# if: always() | ||
# run: cat docker-compose.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