62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
name: Cypress tests -- manual trigger
|
|
|
|
# This workflow runs the frontend tests against chosen branch
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
project:
|
|
description: 'Project'
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- console-lite-e2e
|
|
- explorer-e2e
|
|
- liquidity-provision-dashboard-e2e
|
|
- stats-e2e
|
|
- token-e2e
|
|
- trading-e2e
|
|
tags:
|
|
description: 'Test tags to run'
|
|
required: true
|
|
type: string
|
|
default: '@smoke, @regression, @slow'
|
|
skip-nx-cache:
|
|
description: 'Add --skip-nx-cache to cypress test'
|
|
required: false
|
|
type: boolean
|
|
default: false
|
|
env:
|
|
GOBIN: /home/runner/go/bin
|
|
VEGA_VERSION: 'v0.62.1'
|
|
|
|
jobs:
|
|
manual:
|
|
name: Run Cypress tests -- manual trigger
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set tags
|
|
run: echo TAGS="--env.grepTags '[ ${{ github.event.inputs.tags }} ]'" >> $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
|
|
|
|
outputs:
|
|
vega-version: ${{env.VEGA_VERSION}}
|
|
gobin: ${{env.GOBIN}}
|
|
skip-cache: ${{env.SKIP_NX_CACHE}}
|
|
tags: ${{env.TAGS}}
|
|
|
|
dispatch:
|
|
needs: manual
|
|
uses: ./.github/workflows/tests-dispatcher.yml
|
|
secrets: inherit
|
|
with:
|
|
project: ${{ inputs.project }}
|
|
vega-version: ${{needs.manual.outputs.vega-version}}
|
|
gobin: ${{needs.manual.outputs.gobin}}
|
|
skip-cache: ${{needs.manual.outputs.skip-cache}}
|
|
tags: ${{needs.manual.outputs.tags}}
|
|
capsule-teardown: false
|