Chore/add skip nx cache flag (#1549)
* chore: add skip-nx-cache flag to manual flow * chore: set --skip-nx-cache flag * chore: set --skip-nx-cache flag * chore: set --skip-nx-cache flag * chore: remove log
This commit is contained in:
parent
7b0d41b4a6
commit
28aa5cd060
@ -20,6 +20,11 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
skip-nx-cache:
|
||||||
|
description: 'Add --skip-nx-cache to cypress test'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
manual:
|
manual:
|
||||||
@ -30,6 +35,23 @@ jobs:
|
|||||||
GOBIN: /home/runner/go/bin
|
GOBIN: /home/runner/go/bin
|
||||||
VEGA_VERSION: 'v0.57.0'
|
VEGA_VERSION: 'v0.57.0'
|
||||||
steps:
|
steps:
|
||||||
|
#######
|
||||||
|
## Setup flags
|
||||||
|
#######
|
||||||
|
|
||||||
|
- name: Set smoke tag
|
||||||
|
if: ${{ github.event.inputs.runAlltests==false }}
|
||||||
|
run: echo TAGS="--env.grepTags @smoke" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set --skip-nx-cache flag
|
||||||
|
if: ${{ github.event.inputs.skip-nx-cache==true }}
|
||||||
|
run: echo SKIP_NX_CACHE="--skip-nx-cache" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
# See if we capsule is needed for this project
|
||||||
|
- name: Set capsule flag
|
||||||
|
if: ${{ github.event.inputs.project == 'explorer-e2e' || github.event.inputs.project == 'token-e2e' }}
|
||||||
|
run: echo RUN_CAPSULE=true >> $GITHUB_ENV
|
||||||
|
|
||||||
#######
|
#######
|
||||||
## Setup langs
|
## Setup langs
|
||||||
#######
|
#######
|
||||||
@ -62,11 +84,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
path: './frontend-monorepo'
|
path: './frontend-monorepo'
|
||||||
|
|
||||||
# See if we capsule is needed for this project
|
|
||||||
- name: Set capsule flag if necessary
|
|
||||||
if: ${{ github.event.inputs.project == 'explorer-e2e' || github.event.inputs.project == 'token-e2e' }}
|
|
||||||
run: echo RUN_CAPSULE=true >> $GITHUB_ENV
|
|
||||||
|
|
||||||
# Restore node_modules from cache if possible
|
# Restore node_modules from cache if possible
|
||||||
- name: Restore node_modules from cache
|
- name: Restore node_modules from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -113,17 +130,13 @@ jobs:
|
|||||||
## Run some tests
|
## Run some tests
|
||||||
######
|
######
|
||||||
|
|
||||||
- name: Set smoke tag if necessary
|
|
||||||
if: ${{ github.event.inputs.runAlltests==false }}
|
|
||||||
run: echo TAGS="--env.grepTags @smoke" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
# To make sure that all Cypress binaries are installed properly
|
# To make sure that all Cypress binaries are installed properly
|
||||||
- name: Install cypress bins
|
- name: Install cypress bins
|
||||||
run: yarn cypress install
|
run: yarn cypress install
|
||||||
working-directory: frontend-monorepo
|
working-directory: frontend-monorepo
|
||||||
|
|
||||||
- name: Run Cypress tests
|
- name: Run Cypress tests
|
||||||
run: yarn nx run ${{ github.event.inputs.project }}:e2e --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome ${{ env.TAGS }}
|
run: yarn nx run ${{ github.event.inputs.project }}:e2e ${{ env.SKIP_NX_CACHE }} --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome ${{ env.TAGS }}
|
||||||
working-directory: frontend-monorepo
|
working-directory: frontend-monorepo
|
||||||
env:
|
env:
|
||||||
CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
||||||
|
@ -100,7 +100,7 @@ jobs:
|
|||||||
working-directory: frontend-monorepo
|
working-directory: frontend-monorepo
|
||||||
|
|
||||||
- name: Run Cypress tests
|
- name: Run Cypress tests
|
||||||
run: yarn nx run-many --target=e2e --all --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome
|
run: yarn nx run-many --skip-nx-cache --target=e2e --all --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome
|
||||||
working-directory: frontend-monorepo
|
working-directory: frontend-monorepo
|
||||||
env:
|
env:
|
||||||
CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
||||||
|
Loading…
Reference in New Issue
Block a user