777d330f8e
* chore: clean jsonrpc wallet api methods - remove permission methods * chore: clean jsonrpc wallet api methods - remove permission methods * chore: clean jsonrpc wallet api methods - remove permission methods * chore: clean jsonrpc wallet api methods - fix failing unit test * chore: update vega_version * chore: update vega to v0.63.0 in workflows * chore: mock api-token in connect wallet response * chore: fix token env in workflow * chore: remove dummy wallet leftovers * chore: fix asset tests * chore: fix remaining explorer tests * chore: increase tx timeout * chore: remove smoke test temporarily * chore: remove other governance smoke test * chore: remove smoke staking test * chore: move validator tests to regression * chore: revert regression change because they are also running * chore: move vega wallet tests to slow * chore: skip tests instead Co-authored-by: maciek <maciek@vegaprotocol.io> Co-authored-by: Rado <szpiechrados@gmail.com>
88 lines
2.7 KiB
YAML
88 lines
2.7 KiB
YAML
name: Cypress - console-lite
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
trigger:
|
|
required: true
|
|
type: string
|
|
default: 'false'
|
|
vega-version:
|
|
required: true
|
|
type: string
|
|
gobin:
|
|
required: false
|
|
type: string
|
|
default: /home/runner/go/bin
|
|
skip-cache:
|
|
required: false
|
|
type: string
|
|
tags:
|
|
required: false
|
|
type: string
|
|
|
|
jobs:
|
|
console-lite-e2e:
|
|
if: ${{ inputs.trigger == 'true' }}
|
|
runs-on: self-hosted
|
|
steps:
|
|
# Add GOBIN to PATH
|
|
- name: Add GOBIN to PATH
|
|
run: echo ${{ inputs.gobin }} >> $GITHUB_PATH
|
|
|
|
# Checkout front ends
|
|
- name: Checkout frontend mono repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
path: './frontend-monorepo'
|
|
|
|
# Restore node_modules from cache if possible
|
|
- name: Restore node_modules from cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
frontend-monorepo/node_modules
|
|
/home/runner/.cache/Cypress
|
|
key: node_modules_cypress-${{ hashFiles('frontend-monorepo/yarn.lock') }}
|
|
|
|
# Install frontend dependencies
|
|
- name: Install root dependencies
|
|
run: yarn install --frozen-lockfile
|
|
working-directory: frontend-monorepo
|
|
|
|
#######
|
|
## Build and run Vegacapsule network
|
|
#######
|
|
|
|
- name: Install Vega binaries
|
|
uses: ./frontend-monorepo/.github/actions/install-vega-binaries
|
|
with:
|
|
version: ${{ inputs.vega-version }}
|
|
gobin: ${{ inputs.gobin }}
|
|
|
|
######
|
|
## Setup a Vega wallet for our user
|
|
######
|
|
|
|
- name: Set up Vegawallet
|
|
id: setup-vega
|
|
uses: ./frontend-monorepo/.github/actions/setup-vegawallet
|
|
with:
|
|
recovery: ${{ secrets.TRADING_TEST_VEGA_WALLET_RECOVERY }}
|
|
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
|
|
|
# To make sure that all Cypress binaries are installed properly
|
|
- name: Install cypress bins
|
|
run: yarn cypress install
|
|
working-directory: frontend-monorepo
|
|
|
|
- name: Run Cypress tests
|
|
run: npx nx run console-lite-e2e:e2e ${{ inputs.skip-cache }} --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome ${{ inputs.tags }}
|
|
working-directory: frontend-monorepo
|
|
env:
|
|
CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
|
CYPRESS_SLACK_WEBHOOK: ${{ secrets.CYPRESS_SLACK_WEBHOOK }}
|
|
CYPRESS_ETH_WALLET_MNEMONIC: ${{ secrets.CYPRESS_ETH_WALLET_MNEMONIC }}
|
|
CYPRESS_VEGA_WALLET_API_TOKEN: ${{ steps.setup-vega.outputs.token }}
|