vega-frontend-monorepo/.github/workflows/test.yml

74 lines
2.0 KiB
YAML
Raw Normal View History

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 10:05:13 +00:00
name: Unit tests & build
on:
push:
branches:
- master
- develop
pull_request:
jobs:
master:
name: Test and lint - main
runs-on: ubuntu-latest
2022-09-02 13:00:29 +00:00
permissions:
contents: 'read'
actions: 'read'
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: Checkout
2022-09-02 13:00:29 +00:00
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
with:
main-branch-name: master
- name: Use Node.js 16
id: Node
2022-09-02 13:00:29 +00:00
uses: actions/setup-node@v3
with:
node-version: 16.14.0
- name: Install root dependencies
run: yarn install
- name: Check formatting
run: yarn nx format:check
- name: Lint affected
2022-03-31 15:42:12 +00:00
run: yarn nx affected:lint --max-warnings=0
- name: Test affected
run: yarn nx affected:test
- name: Build affected
run: yarn nx affected:build
pr:
name: Test and lint - PR
runs-on: ubuntu-latest
2022-09-02 13:00:29 +00:00
permissions:
contents: 'read'
actions: 'read'
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout
2022-09-02 13:00:29 +00:00
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
with:
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 15:24:28 +00:00
main-branch-name: develop
- name: Use Node.js 16
id: Node
2022-09-02 13:00:29 +00:00
uses: actions/setup-node@v3
with:
node-version: 16.14.0
- name: Install root dependencies
run: yarn install
- name: Check formatting
run: yarn nx format:check
- name: Lint affected
2022-03-31 15:42:12 +00:00
run: yarn nx affected:lint --max-warnings=0
- name: Test affected
run: yarn nx affected:test
- name: Build affected
run: yarn nx affected:build