2022-10-27 09:59:09 +00:00
|
|
|
name: Cypress Console tests -- live environment
|
|
|
|
|
|
|
|
# This workflow runs using provided url
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
url:
|
|
|
|
description: 'Url'
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
cypress-run:
|
|
|
|
name: Run Cypress Trading tests -- live environment
|
2023-04-03 13:53:50 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2022-10-27 09:59:09 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2023-02-23 10:16:22 +00:00
|
|
|
- name: Use Node.js 16
|
|
|
|
id: Node
|
|
|
|
uses: actions/setup-node@v2
|
2023-02-21 17:46:00 +00:00
|
|
|
with:
|
2023-02-23 10:16:22 +00:00
|
|
|
node-version: 16.15.1
|
2023-02-21 17:46:00 +00:00
|
|
|
|
2022-10-27 09:59:09 +00:00
|
|
|
- name: Run Cypress tests
|
|
|
|
uses: cypress-io/github-action@v4
|
|
|
|
with:
|
|
|
|
browser: chrome
|
|
|
|
record: true
|
2022-10-27 10:40:30 +00:00
|
|
|
project: ./apps/trading-e2e
|
|
|
|
config: baseUrl=${{ github.event.inputs.url }}
|
|
|
|
env: grepTags=@live
|
2022-10-27 09:59:09 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|