Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Cypress Tests

Cypress Tests #115

Workflow file for this run

name: Cypress Tests
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
cypress-run:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max-old-space-size=8192"
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Yarn deps
run: yarn deps
- name: Generate SSH Key
run: |
ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519
- name: Write the cypress.env.json file
run: |
echo '${{ secrets.TFCHAIN_MNEMONICS }}' > cypress.env.json
- name: Cypress run
uses: cypress-io/[email protected]
with:
browser: chrome
start: yarn serve:app
wait-on: "http://localhost:8080/"
wait-on-timeout: 350