Commit Graph

353 Commits

Author SHA1 Message Date
Radosław Szpiech
93c1835cd6
Chore/1495 workflows minor improvements fixes and cleanup (#1538)
* test: try with shared actions

* test: fix env

* test: fix path

* test: fix path

* test: fix path

* test: fix path

* test: fix path

* test: fix path

* test: fix path

* test: fix path

* test: fix path

* test: fix path

* test: fix path

* test: create action for capsule build

* test: create action for capsule build

* test: create action for capsule build

* test: create action for capsule build

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* chore: create action for vegawallet setup

* chore: create action for vegawallet setup

* chore: fix

* chore: fix

* chore: fix

* chore: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* chore: apply changes to all workflows

* chore: apply changes to all workflows
2022-09-29 14:13:09 +01:00
Radosław Szpiech
6ddceaf6bd
chore: update vega binaries to v0.57.0 (#1514) 2022-09-28 15:31:35 +02:00
AndyWhiteVega
a9e8b6915e
Test/using chrome headless (#1516)
* test: change night run to use headless chrome to address memory issues

* test: update manual for non-smoke

* test: remove headless flag since depreciated

* test: update browser for cypress
2022-09-28 14:26:22 +01:00
Radosław Szpiech
6af189150b
test: vega in vegacapsule version changed to 0.56.0 (#1499) 2022-09-27 12:10:39 +02:00
Joe Tsang
195e234f16
Chore/separate cypress install in workflow (#1481)
* chore: add step that makes sure that Cypress bins are installed correctly

* chore: missing working directory

* chore: update remaining flows

Co-authored-by: Rado <szpiechrados@gmail.com>
2022-09-26 14:56:53 +02:00
Joe Tsang
f87fd676f6
chore: revert hosted runner (#1480) 2022-09-26 13:42:43 +02:00
Joe Tsang
b885696659
Chore/use self hosted runners (#1475)
* chore: edit manual flow

* chore: install yarn in flow

* chore: change runner for remaining flows

* chore: add yarn install to other flows
2022-09-26 12:15:05 +01:00
Radosław Szpiech
f124275ce5
chore: remove unnecessary if (#1468) 2022-09-23 16:49:38 +02:00
Radosław Szpiech
483cf05050
fix: need to yarn install before nx usage (#1466) 2022-09-23 16:23:54 +02:00
Radosław Szpiech
a452a6e831
Chore/use cache in GitHub jobs (#1461)
* chore: use cache v3

* chore: just cache whole node modules

* chore: download binaries instead of building them

* chore: missing directory flag

* chore: remove directory

* chore: aaah gobin

* chore: apply all improvements to other workflows

* chore: cache cypress

* fix: added mock for one failing test, removed console.log

* fix: removed increased timeout - not needed

* chore: change name back

Co-authored-by: asiaznik <artur@vegaprotocol.io>
2022-09-23 15:56:47 +02:00
Joe Tsang
ac16ca9ee5
Test/783 cypress tags (#1428)
* test: add tags for slow tests

* chore: remove old flows

* test: added smoke tags to view tests

* test: add tags for trading tests

* test: tags for explorer tests added

* chore: add tags to remaining tests and tidy files

* chore: pass env in test command

* chore: fix build errors

* chore: re-add teardown for manual flow

* chore: ability to only run smoke tests in manual flow

* chore: fix manual input flow
2022-09-22 18:40:11 +01:00
Radosław Szpiech
c3cdcede9f
Chore/speed up manual workflow (#1436)
* chore: add similar way to speed up tests that is used in  capsule-cypress

* chore: fix typo

* chore: fix the fix

* fix: add network import

* fix: add home

* fix: another fix bites the dust
2022-09-22 18:19:18 +02:00
Radosław Szpiech
186a624466
fix: use fairground network for vega wallet if capsule is not run (#1431)
* fix: use fairground network for vega wallet if capsule is not run

* fix: this fix should fix the fix

* fix: add import fairground network

* fix: home paths added to vega wallet
2022-09-22 17:59:31 +02:00
Radosław Szpiech
4d9c43cf19
Chore/improve ci test times (#1423)
* chore: disable video record for token e2e

* chore: disable videos in all tests

* fix: change main-branch-name to base-ref

* chore: disable capsule being run when not necessary

* fix: missing true

* chore: fix typo

* chore: fix if contruction

* chore: fix env

* chore: fix envs

* chore: try to fix develop ref
2022-09-22 16:07:18 +02:00
Bartłomiej Głownia
3bf5d823ee
chore: stagnet3 api updates (#1321)
* chore: update account, fills and orders subscriptions in data providers

* chore: update account, fills and orders subscriptions in data providers

* fixing console-lite

* fixing types in general - regen

* chore: update account, fills and orders subscriptions in data providers

* fixed console-lite unit tests, uncommented quote name

* chore: update account, fills and orders subscriptions in data providers

* type aligning of assets and proposals

* fixes liquidity data provider

* fixed accounts build errors and unit tests

* regen types, removed market name

* regen types

* fixed positions

* chore: handle updates in derived market provider, update orders

* removed taker fee mapping (renamed to maker fee)

* chore: update account, fills and orders subscriptions in data providers

* chore: update account, fills and orders subscriptions in data providers

* chore: fix Order type

* chore: fix possible null types

* chore: revert order-list.stories.tsx

* chore:  derivedDataProvider fixes

* fills unit tests fixes

* orders unit tests fixes

* added eslint ingore for generated files in liquidity

* added unique key to the list element of simple market toolbar

* changed main-branch-name to develop for pr workflows

* removed redundant waitFor

* increased test timeout to 10s

* removed mocked response

* chore: disable simple market list tests

* chore: fix e2e projects mock types

* feat: [subscription-update] - uncomment some console-lite tests

* cypress: trading-accounts

* chore: replace  market candles with candlesConnection

* chore: ignore gql errors, to be reverted after candlesConnectio n will be fixed

* feat: [subscription-update] - improve wrongly renamed hook

* feat: [subscription-update] - improve wrongly renamed hook

* feat: [subscription-update] - improve wrongly renamed hook 3

* chore: add pagination hangdling to derived data provier

* cypress: trading-fills

* feat: [stagnet3 api update] - remove redundant command in tests

* feat: [stagnet3 api update] - remove redundant command in tests

* chore: fix trading orders e2e tests

* chore: fix console lite e2e mocks

* chore: fix market-trade tests

* chore: use markets only in market selector, change Instrument cache policy

* chore: fix market-selector tests

* feat: [subscription-update] - improve ag grid conf for unit tests

* feat: [subscription-update] - improve ag grid conf for unit tests

* chore: fix candle types in console lite market mocks

* chore: revert error policy ignore

* chore: revert jest timeout

* chore: remove unused AccountFields

* chore: revert remove unused AccountFields

* chore: simplify node subscription probe

* chore: remove unused generated types in candles-chart

* chore: improve useMarketsList mock

* feat: [subscription-update] - increase jest timeout

* feat: [subscription-update] - fix jest timeout

* feat: [subscription-update] - fix jest timeout

* feat: [subscription-update] - try to fix failing test again

* chore: fix candles-chart types

* feat: [subscription-update] - temporary skip failing test

* feat: [subscription-update] - temporary skip failing test

* feat: [subscription-update] - temporary skip failing test

* feat: [subscription-update] - fix failling int test

* feat: [subscription-update] - try to restore commented unit tests

* feat: [subscription-update] - try to restore commented unit tests

* feat: [subscription-update] - improve fixed unit tests

Co-authored-by: asiaznik <artur@vegaprotocol.io>
Co-authored-by: maciek <maciek@vegaprotocol.io>
2022-09-20 08:24:28 -07:00
Penny Andrews
c211c179b6
Create issue templates (#1386)
* Create bug issue template

* Create chore.md issue template

* Create user story issue template

* Update ---bug.md

* Update chore.md

* Update user-story.md

* test: update formatting

* fix: formatting

Co-authored-by: Gordsport <83510148+gordsport@users.noreply.github.com>
Co-authored-by: Madalina Raicu <madalina@vegaprotocol.io>
2022-09-19 15:33:23 +01:00
AndyWhiteVega
d47d754ac9
Test/governance suite expansion (#1372)
* 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

* test: couple more tests to fulfill ACs

* test: lint

* test: more tests

* test: lint

* test: extra check within test

* test: lint

* test: minor

* test: improve test flake and skip test bugs outstanding

* test: lint and increase epoch length by second

* test: more tests

* test: lint

* test: lint

* test: lint

* test: teardown functionality

* test: lint

* test: epoch speed up and network restart stuff

* test: lint

* test: change epoch duration

* test: timing tweaks due to failures in CI

* test: lint

* test: more timing tweaks

* test: lint

* test: timing tweak

* test: lint

* test: lint

* test: config changes
2022-09-16 18:12:08 +01:00
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
Edd
0e13248bee Address review comments 2022-04-11 14:54:10 +01:00
Edd
62944b89cd
Remove redundant check
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-04-11 14:45:45 +01:00
Edd
32cef6ef0c Genericise tool name, add workflow 2022-04-11 12:42:22 +01:00
Edd
88604959f4 Remove unused publish step 2022-04-11 12:12:07 +01:00
Joe Tsang
a459793f09
Task/Updated tests to pass when there are no transactions (#145)
* Updated tests to pass when there are no txs

* Add slack command to send messages to slack

* Re add library for Cypress

* Resolved PR comments

* Added TODOs for clarity

* Increase wait for block to update

* Increase to 3 seconds

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-04-04 18:20:33 +01:00
Joe Tsang
205f4124f1
Test/deal ticket tests (#161)
* scaffold dealticket package, remove trading views from react-helpers

* add deal ticket component, add intent utils, expand dialog and form group styles

* add splash component, show market not found message if market doesnt exist

* tidy up error handling

* add handleError method for vega tx hook

* add better testname for provider test, flesh out tests a bit more for deal ticket

* Add unit tests for useVegaTransaction and useOrderSubmit hooks

* add wrapper component for order dialog styles

* add vega styled loader to ui toolkit and use in order dialog

* add title prop to order dialog

* split limit and market tickets into own files

* add button radio component

* revert dialog styles

* move splash component to ui-toolkit, add story

* convert intent to enum

* Make button always type=button unless type prop is passed

* inline filter logic for tif selector

* add date-fns, add datetime to helpers

* add order types to wallet package, make price undefined if order type is market

* use enums in deal ticket logic

* tidy up order state by moving submit and transaction hooks out of deal ticket

* add comment for dialog styles

* remove decimal from price input

* add types package, delete old generated types from trading project

* rename types package to graphql

* update generate command to point to correct locations

* fix use order submit test

* BDD and navigation tests passing

* Remove commented steps

* Steps up to placing order

* Date picker and date-fns update

* Vega connector wallet tests

* Passing up to request sent, updated date picker

* Tests for sell orders and errors

* Update market feature

* Fix failing tests

* Update wallet login

* Readded tx hash assertion and remaining tests

* Add CI wallet import

* Update .github/workflows/cypress.yml

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

* Resolved PR comments

* Fix yaml error

* Attempt to fix failing tests in CI

* Run Cypress in Chrome

* Add reload if public key error displayed

* Fix wallet name

* Add force click and waits

* Increase timeout for deal ticket page

* Removed network list from yaml and using input error id

* Increase timeout to 8 seconds

* Re add deleted test id

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-04-04 16:11:27 +01:00
Dexter
cc28596d9f do not allow warnings on PRs 2022-04-01 10:51:56 +01:00
Matthew Russell
1e196bab19
Task/Update workflows to use full node version (#188) 2022-03-31 09:57:23 -07:00
Bartłomiej Głownia
7af0efa8d8 Enable @typescript-eslint/consistent-type-imports eslint rule 2022-03-30 13:05:41 +02:00
Dexter Edwards
ecbcdf57e3
add workflow for lint, build and format (#111)
* add workflow for lint, build and format

* run checks [skip netlify]
2022-03-22 13:11:01 +00:00
Joe
37294b3174 Make job name unique 2022-03-10 12:05:41 +00:00
Joe
0372b4be50 Resolve PR comment 2022-03-10 12:05:41 +00:00
Joe
35a7c0fd1f Stop tests running twice and revert changes to publish.yml 2022-03-10 12:05:41 +00:00
Joe
d9b8a65082 set main branch to master 2022-03-10 12:05:41 +00:00
Joe
3787decb0a add checkout ref 2022-03-10 12:05:41 +00:00
Joe
e7af88e875 Adding step names 2022-03-10 12:05:41 +00:00
Joe
1fa63d2260 Remove Cypress action 2022-03-10 12:05:41 +00:00
Joe
c965a53bb7 Remove install in Cypress step 2022-03-10 12:05:41 +00:00
Joe
7000679863 Update serve explorer 2022-03-10 12:05:41 +00:00
Joe
9699c1f69d Change back to yarn 2022-03-10 12:05:41 +00:00
Joe
8160c3aa9a Try npm install 2022-03-10 12:05:41 +00:00
Joe
7da51ce1d5 Add separate Cypress yml 2022-03-10 12:05:41 +00:00
Joe
334024de14 Update yml file 2022-03-10 12:05:41 +00:00
Bartłomiej Głownia
355de1a32f Create a Mono-repo for DeFiUI + ui toolkit using nx 2022-02-11 15:02:11 +01:00
Bartłomiej Głownia
1244d1be80 move all files to libs/ui-toolkit 2022-02-11 13:18:34 +01:00
Dexter
831195ac6b Revert "add size action"
This reverts commit 59d5baaa41ce6fba8ee1a0c1be749a7ce72a186f.
2022-01-11 10:24:48 +00:00
Dexter
f052a3b742 add size action 2022-01-11 10:24:48 +00:00
Dexter
c7dddd5dc5 use coverage in publish script 2021-12-14 13:16:41 +00:00
Dexter
b3617eed30 add testing into deploy workflow 2021-12-14 12:16:15 +00:00
Dexter
9bef1025a4 build before publish 2021-12-14 11:32:47 +00:00
Dexter
b10395bc65 only publish on tag 2021-12-13 10:35:35 +00:00
Dexter
304a90b7a4 switch to yarn 2021-12-13 10:30:15 +00:00
Dexter
0fb325a2cb only build on node 14.x 2021-12-13 10:28:32 +00:00
Dexter
94827652c7 remove test as there are none for now 2021-12-13 10:27:54 +00:00
Dexter
cda3d325bb add publish workflow 2021-12-13 10:27:13 +00:00
gordsport
056d1f193d Add Github action to add new issues to frontend project board
Added as part of https://github.com/vegaprotocol/token-frontend/issues/1057
2021-12-10 13:35:23 +00:00