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>
This commit is contained in:
Joe Tsang 2022-09-26 13:56:53 +01:00 committed by GitHub
parent b505a0598d
commit 195e234f16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 3 deletions

View File

@ -24,7 +24,7 @@ on:
jobs:
manual:
name: Run capsule tests -- manual trigger
runs-on: ubuntu-latest
runs-on: self-hosted
env:
GO111MODULE: 'on'
VEGA_VERSION: 'v0.55.0'
@ -43,6 +43,12 @@ jobs:
with:
node-version: 16
#######
## Install Yarn
#######
- name: Setup yarn
run: npm install -g yarn
#######
## Checkout repos
#######
@ -159,6 +165,11 @@ jobs:
## Run some tests
######
# To make sure that all Cypress binaries are installed properly
- name: Install cypress bins
run: yarn cypress install
working-directory: frontend-monorepo
- name: Run smoke Cypress tests
if: ${{ github.event.inputs.runAlltests == 'true' }}
run: yarn nx run ${{ github.event.inputs.project }}:e2e --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --env.grepTags='@smoke'

View File

@ -9,7 +9,7 @@ on:
jobs:
nightly:
name: Run capsule tests -- nightly
runs-on: ubuntu-latest
runs-on: self-hosted
env:
GO111MODULE: 'on'
VEGA_VERSION: 'v0.55.0'
@ -28,6 +28,12 @@ jobs:
with:
node-version: 16
#######
## Install Yarn
#######
- name: Setup yarn
run: npm install -g yarn
#######
## Checkout repos
#######
@ -122,6 +128,11 @@ jobs:
## Run some tests
######
# 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: yarn nx run-many --target=e2e --all --record --key ${{ secrets.CYPRESS_RECORD_KEY }}
working-directory: frontend-monorepo

View File

@ -15,7 +15,7 @@ on:
jobs:
pr:
name: Run capsule tests - PR
runs-on: ubuntu-latest
runs-on: self-hosted
env:
GO111MODULE: 'on'
VEGA_VERSION: 'v0.55.0'
@ -34,6 +34,12 @@ jobs:
with:
node-version: 16
#######
## Install Yarn
#######
- name: Setup yarn
run: npm install -g yarn
#######
## Checkout repos
#######
@ -160,6 +166,11 @@ jobs:
working-directory: frontend-monorepo
main-branch-name: ${{github.base_ref}}
# 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 affected:e2e --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --env.grepTags='@smoke'
working-directory: frontend-monorepo