-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new e2e flow * changelog * updated security critical deps * remove workspace * forgot to checkout the repo * correct cache key && cache app deps * install deps for e2e tets * update chromedriver * use npm in machine * don't use yarn in machine on ci * correct screenshot settings * remove experimental flags * working tests * fixed test * old lunie still serves with https * switch lunie to feature branch * fixed missing network and updated lunie * linted * fixed build script * use yarn.lock as cache key * use script from package.json * merge develop * use local url in tests * fix tests by importing the correct account instead of creating one * switch to working e2e extension branch * fix tests * wait for element to be present * skip moving to portfolio * switched to latest branches * switch submodule to master * switched to master branch fro lunie * force master checkout * security update
- Loading branch information
Showing
15 changed files
with
189 additions
and
99 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,25 +1,34 @@ | ||
version: 2.1 | ||
|
||
aliases: | ||
# Define paths and never think about them again | ||
- &WORKSPACE /tmp/lunie | ||
|
||
# reusable commands | ||
commands: | ||
yarn-install: | ||
description: '[YARN] update and install' | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v4-dependencies-root-{{ checksum "package.json" }} | ||
- v4-dependencies-root-{{ checksum "yarn.lock" }} | ||
- v4-dependencies-root- | ||
|
||
- run: yarn install | ||
- save_cache: | ||
paths: | ||
- yarn.lock | ||
- node_modules | ||
key: v4-dependencies-root-{{ checksum "package.json" }} | ||
key: v4-dependencies-root-{{ checksum "yarn.lock" }} | ||
npm-install-app: | ||
description: '[NPM] update and install' | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-app-root-{{ checksum "lunie/yarn.lock" }} | ||
- v1-dependencies-app-root- | ||
|
||
- run: cd lunie && npm install | ||
- save_cache: | ||
paths: | ||
- lunie/node_modules | ||
key: v1-dependencies-app-root-{{ checksum "lunie/yarn.lock" }} | ||
|
||
jobs: | ||
pendingUpdated: | ||
|
@@ -83,34 +92,69 @@ jobs: | |
exit 0 | ||
testE2E: | ||
docker: | ||
# Primary container image where all steps run. | ||
- image: circleci/node:10.15.3-browsers | ||
# Secondary container image on common network which runs the testnet | ||
- image: lunieio/testnet:v0.34.3 | ||
machine: true | ||
steps: | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "65:5f:43:fd:be:48:c8:45:d5:39:ef:86:14:d6:e1:12" | ||
- checkout | ||
- attach_workspace: | ||
at: *WORKSPACE | ||
- yarn-install | ||
- setup_remote_docker | ||
- run: npm install | ||
- run: | ||
name: Build | ||
name: Add GitHub to known hosts | ||
command: | | ||
npm run initiate-submodule | ||
npm run test:e2e:build | ||
cd lunie | ||
yarn certificates | ||
mkdir -p ~/.ssh | ||
touch ~/.ssh/known_hosts | ||
ssh-keygen -R github.com | ||
ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
- run: | ||
name: checkout backend | ||
command: | | ||
git clone [email protected]:luniehq/lunie-backend.git | ||
cd lunie-backend | ||
git checkout origin/develop | ||
- run: | ||
name: Use NVM | ||
command: | | ||
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV | ||
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV | ||
- run: | ||
name: Install node version | ||
command: | | ||
nvm install v10.13.0 | ||
nvm alias default v10.13.0 | ||
- run: | ||
name: Install Chrome | ||
command: | | ||
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | ||
sudo apt-get update | ||
sudo apt-get -y install google-chrome-stable | ||
- run: | ||
name: Run testnet | ||
command: | | ||
cd lunie-backend | ||
docker-compose up --build -d | ||
- run: | ||
# needs to be done in CI to be sure it is build once we start the tests | ||
name: Build Extension | ||
command: | | ||
npm run initiate-submodule | ||
npm run test:e2e:build | ||
environment: | ||
VUE_APP_GRAPHQL_URL: http://127.0.0.1:4000 # Browserstack tunneling doesn't work with "localhost" | ||
- npm-install-app | ||
- run: | ||
# needs to be done in CI to be sure it is build once we start the tests | ||
name: Build App | ||
command: | | ||
cd lunie | ||
npm run test:e2e:build | ||
environment: | ||
NETWORK: local-cosmos-hub-testnet | ||
VUE_APP_GRAPHQL_URL: http://127.0.0.1:4000 # Browserstack tunneling doesn't work with "localhost" | ||
- run: | ||
name: Test | ||
command: npm run test:e2e:start-lunie & yarn test:e2e | ||
command: npm run test:e2e:start-lunie & npm run test:e2e | ||
no_output_timeout: 120 | ||
- store_artifacts: | ||
path: ./screenshots | ||
|
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
/lunie | ||
/test/unit/coverage | ||
/output | ||
/screenshots |
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,4 +1,4 @@ | ||
[submodule "lunie"] | ||
path = lunie | ||
url = https://github.com/luniehq/lunie.git | ||
branch = develop | ||
branch = master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[Fixed] [#110](https://github.com/cosmos/lunie/pull/110) Fix e2e tests by using the lunie-backend docker-compose to run the stack @faboweb |
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
Oops, something went wrong.