2022-09-29 13:13:09 +00:00
|
|
|
name: Cypress tests -- manual trigger
|
2022-07-18 08:38:11 +00:00
|
|
|
|
|
|
|
# This workflow runs the frontend tests against chosen branch
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
project:
|
|
|
|
description: 'Project'
|
|
|
|
required: true
|
|
|
|
type: choice
|
|
|
|
options:
|
2022-08-23 14:02:08 +00:00
|
|
|
- console-lite-e2e
|
2022-11-08 10:33:22 +00:00
|
|
|
- explorer-e2e
|
|
|
|
- liquidity-provision-dashboard-e2e
|
2022-07-18 11:55:31 +00:00
|
|
|
- stats-e2e
|
|
|
|
- token-e2e
|
|
|
|
- trading-e2e
|
2022-11-08 10:33:22 +00:00
|
|
|
tags:
|
|
|
|
description: 'Test tags to run'
|
2022-07-18 08:38:11 +00:00
|
|
|
required: true
|
2022-11-08 10:33:22 +00:00
|
|
|
type: string
|
|
|
|
default: '@smoke, @regression, @slow'
|
2022-09-29 16:27:08 +00:00
|
|
|
skip-nx-cache:
|
|
|
|
description: 'Add --skip-nx-cache to cypress test'
|
|
|
|
required: false
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-07-18 08:38:11 +00:00
|
|
|
jobs:
|
|
|
|
manual:
|
2022-09-29 13:13:09 +00:00
|
|
|
name: Run Cypress tests -- manual trigger
|
2022-11-08 10:33:22 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-07-18 08:38:11 +00:00
|
|
|
steps:
|
2022-11-08 10:33:22 +00:00
|
|
|
- name: Set tags
|
2022-11-08 13:01:37 +00:00
|
|
|
run: echo TAGS="--env.grepTags '[ ${{ github.event.inputs.tags }} ]'" >> $GITHUB_ENV
|
2022-09-29 16:27:08 +00:00
|
|
|
|
|
|
|
- name: Set --skip-nx-cache flag
|
2022-09-30 09:02:55 +00:00
|
|
|
if: ${{ github.event.inputs.skip-nx-cache == 'true' }}
|
2022-09-29 16:27:08 +00:00
|
|
|
run: echo SKIP_NX_CACHE="--skip-nx-cache" >> $GITHUB_ENV
|
|
|
|
|
2022-11-08 10:33:22 +00:00
|
|
|
outputs:
|
|
|
|
skip-cache: ${{env.SKIP_NX_CACHE}}
|
|
|
|
tags: ${{env.TAGS}}
|
|
|
|
|
|
|
|
dispatch:
|
|
|
|
needs: manual
|
|
|
|
uses: ./.github/workflows/tests-dispatcher.yml
|
|
|
|
secrets: inherit
|
|
|
|
with:
|
|
|
|
project: ${{ inputs.project }}
|
|
|
|
skip-cache: ${{needs.manual.outputs.skip-cache}}
|
|
|
|
tags: ${{needs.manual.outputs.tags}}
|