Commit Graph

86 Commits

Author SHA1 Message Date
AndyWhiteVega
040cf0b83b
Test/governance suite expansion (#1317)
* test: initial commit

* test: commit

* test: extra tests and references added also new tag 0.55.0 for builds

* test: lint

* test: back to 0.54 for capsule cypress until tests fixed

* test: skip two tests since wallet name no longer shown soon to be fixed
2022-09-13 13:28:48 +01:00
Joe Tsang
8958db0612
Test/626 oracle info (#1294)
* test: update market info tests

* test: update withdrawal test to include new info

* chore: re add withdrawal mock

* chore: wait for mock

* chore: change cypress browser to electron

* chore: resolved pr comments
2022-09-09 10:36:53 +01:00
Joe Tsang
621feada26
chore: revert back to using previous ubuntu runners (#1286) 2022-09-08 10:37:11 +01:00
Mikołaj Młodzikowski
b5271d07e4
chore: use bigger runners for capusle (#1248) 2022-09-07 11:14:52 -07:00
Joe Tsang
fa6ddcfdf1
Chore/use vega 0.54.0 (#1268)
* chore: change vega version to use 0.54.0

* chore: update remaining workflows
2022-09-07 10:26:26 +01:00
Joe Tsang
e06b5e741c
chore: fix test manual and nightly workflows (#1264) 2022-09-07 09:05:02 +01:00
AndyWhiteVega
e97f82edfe
test: checkout front end changes to cypress workflows (#1258)
* test: checkout front end changes to cypress workflows

* test: remove old fe checkout

* test: remove dup
2022-09-06 15:03:49 +01:00
Dexter Edwards
2032b5ae00
test: change config path for overnight run (#1246)
* test: change config path for overnight run

* test: also change for PR runs

Co-authored-by: AndyWhiteVega <andy@vegaprotocol.io>
2022-09-05 11:48:46 +01:00
AndyWhiteVega
cb4cbdc2ca
Test/757 tfe add e2e tests for governance (#1236)
* test: initial commit

* test: lint

* chore: set different environement variable for rest url

* test: enable commented out steps

* chore: set base correctly

* chore: correct env var

* test: update to function

* test: lint

* test: governance flow

* test: lint

* test: extra tests

* fix: set fetchPolicy to not cache results so new proposals are updated

* test: update

* test: lint

* test: extra tests

* test: lint

* test: add wait and select proposal

* test: lint

* test: extra checks

* test: lint

* Revert "chore: use custom vega capsule file (#1055)"

This reverts commit 6b4b896bbc.

* test: final commit of initial tests

* test: removal of unused file

* test: before all change to reset before each test

* test: speed enhancement

* test: lint

* test: lint check fix

* test: extra tests and checks

* test: lint

* test: extra tests and checks

* test: lint

* test: extra checks & error handling

* test: lint

* test: lint

* test: wallet update

* test: lint

* test: lint

* test: begining of test refactor due to ui revamp

* test: lint

* test: extra test

* test: lint

* test: extra test enable prev skipped

* test: lint

* test: small changes

* test: update ahead of merge

* test: in house vegcapsule config changes

* test: lint

* chore: add vegacapsule config for newer repo

* chore: remove dead config files

* test: genesis and tweaks

* test: lint

* test: added wait to avoid flake

* test: enhancements

* test: lint

* chore: fix lint

Co-authored-by: Dexter <dexter.edwards93@gmail.com>
Co-authored-by: Dexter <dexter@vega.xyz>
Co-authored-by: Joe <joe@vega.xyz>
2022-09-05 09:57:02 +01:00
Art
dd8c237677
chore: bumped up gh actions (#1233) 2022-09-02 14:00:29 +01:00
Matthew Russell
2e3a2526c0
ci: check for draft pr for cypress test run (#1212)
* ci: check for draft pr for cypress test run

* chore: add ready_for_review pr type for ci
2022-09-02 09:45:20 +01:00
fryd
ea7e175fde
ci: fix publishing docker images (#1104)
* ci: improve GitHub Action to build and publish docker image

* ci: increase the timeout for yarn steps

* ci: fix build-args

* ci: merge build GitHub Workflows into one

* ci: add more logging

* ci: Pack locally built dist into nginx container

* ci: build actual app

* ci: setup correct node version

* ci: include dist in context

* ci: use correct path to determine node version

* ci: push images

* ci: publish image

* ci: login always to the hub

* ci: remove debugging conditions

Co-authored-by: Mikołaj Młodzikowski <mikolaj.mlodzikowski@gmail.com>
2022-08-30 09:53:27 +01:00
Joe Tsang
50da2a9d3c
chore: update test asserting SSL (#1136) 2022-08-24 17:30:07 +01:00
Joe Tsang
1f73c8164f
fix: update capsule to latest core (#1127)
* fix: update capsule to latest core

* chore: install vega wallet binaries

* chore: rename work name
2022-08-24 10:14:42 +01:00
macqbat
4ae410eaab
feat: [console-lite] - change app name (#1114)
* feat: [console-lite] - change app name

* feat: [console-lite] - change app name

Co-authored-by: maciek <maciek@vegaprotocol.io>
2022-08-23 16:02:08 +02:00
AndyWhiteVega
74afec34a0
Revert "chore: use custom vega capsule file (#1055)" (#1081)
This reverts commit 6b4b896bbc.
2022-08-19 09:26:30 +01:00
Dexter Edwards
6b4b896bbc
chore: use custom vega capsule file (#1055)
* chore: use custom vega capsule file

* fix: checkout location

* ci: set appropriate working directory

* ci: correct wallet config
2022-08-17 21:16:36 +01:00
Joe Tsang
22fc0e7ac1
Test/625 market info (#999)
* test: assert edit button

* test: assert edit order btn

* test: update market info mock

* test: tests for market info
2022-08-11 11:26:26 +01:00
Joe Tsang
67315d611b
Test/fix nightly run (#979)
* fix: change test command for night run

* chore: try command in capsule run

* chore: correct command

* chore: change checkout to master

* chore: revert changes

* chore: fix typo
2022-08-09 12:18:13 +01:00
Radosław Szpiech
e026fa6244
test: add night runs again (#917)
Co-authored-by: Rado <rado@vegaprotocol.io>
2022-07-29 13:00:34 +02:00
Radosław Szpiech
5f29d0ccb3
Remove nightly runs (#906)
* test: maybe passing true as string would work

* test: lets just create copy of nightly run but with manual trigger

* test: change to boolean true

* test: just remove old flows and create new ones - monkey would be better dev than me if it works

* test: forgot to delete workflows:

* test: yeah remove all of workflows because github does not differentiate removing from renaming

Co-authored-by: Rado <rado@vegaprotocol.io>
2022-07-29 12:10:15 +02:00
Radosław Szpiech
4fd6630ca5
test: maybe passing true as string would work (#895)
* test: maybe passing true as string would work

* test: lets just create copy of nightly run but with manual trigger

Co-authored-by: Rado <rado@vegaprotocol.io>
2022-07-28 16:24:11 +02:00
Joe Tsang
19a79afcc9
Test/update vega branch for capsule (#864)
* fix: update vega checkout branch

* fix: typo
2022-07-26 14:20:17 +01:00
Dexter Edwards
05d8cb3605
Feat: Containerised docker images (#700)
* chore: first pass at config file

* ci: pass app version

* ci: remove workflows that take a while to run to not waste build mins

* ci: run all steps all the time

* ci: correct tags

* ci: correct output syntax

* ci: use quotes

* ci: fix build platform

* ci: only build amd as PoC

* ci: add push true to step

* ci: publish trading and token containers

* fix: use correct environement variable names

* feat: separate dockerfiles for CRA based apps and next apps

* chore: correct path

* fix: incorrect asset path

* ci: build for both platforms

* ci: publish

* ci: add missing deps

* ci: rename pipelines

* ci: rename

* ci: publish on tag only

* ci: remove additional vs

* Revert "ci: remove workflows that take a while to run to not waste build mins"

This reverts commit 7054367ba0.

* chore: remove comment

* chore: revert accientally committed change
2022-07-25 09:48:29 +01:00
Joe Tsang
f7c869674a
Chore/switch capsule version to use main (#832)
* fix: switch to main

* chore: update to use capsule v0.2.1
2022-07-21 10:15:56 +01:00
Joe Tsang
4fe3c916be
Chore/checkout capsule using tags (#822)
* chore: update yaml files

* fix: install binaries from Vega develop

* fix: add to manual flow
2022-07-20 10:01:12 +01:00
Radosław Szpiech
90b2d9bbb0
Fix manual workflow (#786)
* chore: fix typo

* chore: fix flag in workflow

* chore: fix if

Co-authored-by: Rado <rado@vegaprotocol.io>
2022-07-18 13:55:31 +02:00
Radosław Szpiech
462ccc93c5
chore: fix nightly jobs and allow choosing flows (#769)
* chore: fix nightly jobs and allow choosing flows

* chore: restore env variable CYPRESS_NIGHTLY_RUN

Co-authored-by: Rado <rado@vegaprotocol.io>
2022-07-18 10:38:11 +02:00
fryd
4edcdb8f1f
chore: remove GOPROXY (#771) 2022-07-15 08:42:48 +01:00
Matthew Russell
511c8798b9 chore: make tranches update 4 times a day 2022-06-17 15:47:41 -07:00
Matthew Russell
fe6243da99
chore: process tranches workflow cron update to 30 mins (#548) 2022-06-14 15:51:21 +01:00
Dexter
86e29c98a3 Revert "ci: run on push"
This reverts commit 14e0c6d973.
2022-06-10 12:17:55 +01:00
Dexter
14e0c6d973 ci: run on push 2022-06-10 12:11:41 +01:00
Joe Tsang
66c18a2b1b
Test/425 withdrawals (#457)
* chore: improve assertions for deposits

* test: validation test passing

* test: withdrawal tests passing

* fix: test failures in CI

* fix: lint

* chore: add env variables

* fix: failing tests due to wallet service not running

* ci: pass automatic cnsent

* ci: init wallet in other directory

* ci: pass home string everywhere

* ci: config is already imported

* fix: failing deposit and nightly run

* ci: port over changes from pr run

* fix: failing network param tests

* fix: assertion

* fix: assertion one last time

Co-authored-by: Dexter <dexter.edwards93@gmail.com>
2022-05-27 10:23:07 +01:00
Dexter Edwards
96183bea36
Add capsule workflow (#278)
* begin capsule workflow

* remove workflow file we don't want to run while debugging

* vheckout all require repos

* checkout repos to a directory each

* correct branch names

* rename workflow

* fix incorrecr branch name

* begin building binaries

* typo

* remove tests we don't want running while debugging

* remove tests we don't want running while debugging

* typo

* incorrect path

* comment out frontend checkout

* don't install as not done in example script

* add required environement variables

* change paths

* comment out FEM checkout

* check binary built properly

* path stuff

* silly mistake

* use relaive path

* correct working directory

* fix all paths

* debugging

* bump go verion

* fix path

* fix all paths

* fix cannot find config error

* add back in fe stuff

* move cehckout to where it is used

* revert accidentally committed change

* try install over build

* use v3 of action

* export as per action

* debugging

* don't pass path to install

* chnage go install

* change order

* pwd

* pwd

* see what happens without dn

* don't use relative path

* build correct paths

* remove checks as working

* make epxlorer run against locla capsule

* fix incorrect env file

* fix tests

* fixing tests

* trying for green run

* trying for green run

* bump timeout

* check tm endpoints

* configure to use the second tender mint node

* ci: add logs out

* ci: change paht

* ci: set env var correctly

* ci: remove wait for blockChain request

* ci: make test value assertions more robust

* ci: make test value assertions more robust

* chore: minor typo

* ci: add back test and lint scripts

* ci: comment out unused pipeline for now

* ci: break up job into steps

* ci: run all tests and pray it works

* ci: just use local vega wallet

* ci: not building it any more, use go installed bin

* ci: derive hashes properly

* ci: move existing folow into nightly

* ci: run nightly for all tests

* ci: use install bins

* ci: add missing flag

* ci: gobin

* ci: debugging

* ci: echo gopath

* ci: wrong syntax?

* ci: one last time?

* ci: try something else

* ci: try other things

* ci: again

* ci: move var to github env

* ci: set gobin

* ci: syntax

* ci: test out nightly

* ci: switch back nightly to posix

* ci: force network bootstrap

* ci: fix stupid mistake, pass falg to command not name

* ci: put test back

* ci: run on push as well as on pr

* ci: always upload logs if possible

* ci: import config from capsule rather than testnet

* Update apps/explorer-e2e/cypress.json

* test: fix failing test now we are using binaries

* ci: correct URL
2022-05-25 11:05:13 +01:00
Dexter Edwards
103793c6f6
Ci/fix auto commit (#451)
* ci: test branch is behaving the same as master

* chore: update tranches

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: update tranches

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: identical file

* chore: update tranches

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: set github token

* chore: update tranches

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: github env nessecary?

* chore: update tranches

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: move back to cron

Co-authored-by: dexturr <dexturr@users.noreply.github.com>
2022-05-24 10:19:44 +01:00
Dexter
523ed80be0 ci: put token in correct place [skip netlify] 2022-05-24 09:37:27 +01:00
Dexter
07939bc391 ci: test token access control fix for tranches query 2022-05-24 09:30:27 +01:00
Dexter
510d42a1cd ci: fix token 2022-05-24 09:28:31 +01:00
Dexter Edwards
b10432fdf3
Ci/generate tranches (#401)
* ci: generate tranches

* some tidying

* first run done locally

* ignore auto generated files for linting

* fix ignore
2022-05-17 13:26:04 +01:00
Ditmir-Vega
6bccfaf8ab
Task/252 Eth wallet connection and deposit form validation tests (#309)
* add feature/scenarios for deposits

* add file for auction orders tests

* update feature file for deposits

* update feature tests for deposit

* add feature/scenarios for deposits

* add file for auction orders tests

* update feature file for deposits

* update feature tests for deposit

* add test for wallet not connected

* fix lint warning

* add mock ethereum provider to allow connecting ethereum wallet

* add basic test for required validation errors

* add  aria for input errors for a11y and test targeting, expand submit form helper

* use mnemonic for private key generation, update tests to not submit and just assert validation message updates

* add chain id to cypress config

* update scenario

* remove feature file

* lint fix

* Update apps/trading-e2e/cypress.json

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* use mnemonic from github secret, update cypress.json env vars to match

* fix typo in test name and mnemonic env var

* update env variables

* update eth wallet mnemonic env

* Update libs/cypress/src/lib/eip1193-bridge.ts

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* remove unused reference to chainId

* update casing

* chainId reference from cypress.json

* Update apps/trading-e2e/cypress.json

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* Update apps/trading-e2e/src/support/step_definitions/deposits.step.ts

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* ignore a known failing step in the test due to wallet connected having approved status

* update testid

* update tests for deposits

* tidy up comments in custom cypress commands

* add comment about eager connect when running in cypress

* update deposits tests

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-05-10 20:37:09 +01:00
Dexter Edwards
bdc9661646
Add PR template (#389) 2022-05-09 10:43:21 +01:00
Dexter Edwards
f9c8178412
Ci/generate queries (#336)
* generate GQL queries as an artefact

* rename artefact

* only run on master

* remove uneeded file
2022-05-09 10:15:45 +01:00
Dexter Edwards
ce5d7bc15b
run nx format (#295) 2022-04-25 15:03:58 +01:00
Matthew Russell
899277e6d4
Fixes for workflows (#291)
* change to setting envars rather than passing in via CLI

* update nx to latest patch version

* add env files for token-e2e, fix lint and ts errors

* move generate functions to mocs for trading e2e to avoid violating boundary rules

* add jsx compiler option for trading-e2e

* downgrade nextjs

* add testing-library to types declaration where required
2022-04-22 17:51:18 -07:00
Joe Tsang
f0fdecb490
Test/234 switch public key (#254)
* Test for switching public key

* Add missing variable

* Add background step

* Fix yaml error

* Increase timeout for cy.wait

* Assert pub key using Cypress env variable

* Fix module error

* Add string

* Remove timeout

* Removed react-helper import and added Cypress env variable
2022-04-19 12:12:08 +01:00
Edd
1029c5bfa2
Update IPFS deploy step
Missing yarn install
2022-04-12 13:41:01 +00:00
Edd
e41f9f455c
Fix IPFS deploy step
After #244, and setting up the appropriate ENV var, I forgot to explicitly make it available in the build step that needs it.

- Update IPFS action
2022-04-12 10:13:20 +00:00
Edd
47f1f73582 Update workflow to remove pre-script nx affected 2022-04-11 18:55:59 +01:00
Edd
079d09e3d9 Hardcode commits to last master commit 2022-04-11 14:56:55 +01:00