Skip to content

feat: cypress text

feat: cypress text #2

Workflow file for this run

name: Cypress Tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: yarn
- name: Set environment variables
run: |
echo "REACT_APP_API_URL=http://fe.alipay.net:8080" >> $GITHUB_ENV
echo "PORT=3000" >> $GITHUB_ENV
echo "HOST=fe.alipay.net" >> $GITHUB_ENV
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Install dependencies
run: yarn install
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: yarn build
start: yarn start
browser: chrome