Fix manual workflow (#786)

* chore: fix typo

* chore: fix flag in workflow

* chore: fix if

Co-authored-by: Rado <rado@vegaprotocol.io>
This commit is contained in:
Radosław Szpiech
2022-07-18 13:55:31 +02:00
committed by GitHub
co-authored by Rado
parent ff68c878d0
commit 90b2d9bbb0
2 changed files with 14 additions and 12 deletions
@@ -10,11 +10,11 @@ on:
required: true
type: choice
options:
- explorer
- simple-trading-app
- stats
- token
- trading
- explorer-e2e
- simple-trading-app-e2e
- stats-e2e
- token-e2e
- trading-e2e
includeFlows:
description: 'Include long flows (if any)?'
required: true
@@ -117,7 +117,7 @@ jobs:
run: yarn install
- name: Run Cypress tests
run: yarn nx run-many --target=e2e --project=${{inputs.project}} --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome
run: yarn nx run ${{inputs.project}}:e2e --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome
env:
CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
CYPRESS_SLACK_WEBHOOK: ${{ secrets.CYPRESS_SLACK_WEBHOOK }}
+8 -6
View File
@@ -6,12 +6,14 @@ module.exports = defineConfig({
baseUrl: 'http://localhost:4210',
fileServerFolder: '.',
fixturesFolder: false,
specPattern: [
'./src/integration/view/**/*.cy.{js,jsx,ts,tsx}',
process.env.CYPRESS_INCLUDE_FLOWS
? './src/integration/flow/**/*.cy.{js,jsx,ts,tsx}'
: '',
],
specPattern:
process.env.CYPRESS_INCLUDE_FLOWS === 'true' ||
process.env.CYPRESS_INCLUDE_FLOWS === true
? [
'./src/integration/view/**/*.cy.{js,jsx,ts,tsx}',
'./src/integration/flow/**/*.cy.{js,jsx,ts,tsx}',
]
: ['./src/integration/view/**/*.cy.{js,jsx,ts,tsx}'],
modifyObstructiveCode: false,
supportFile: './src/support/index.ts',
video: true,