Skip to content

Commit

Permalink
feat: cypress text
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam-Zhao committed Nov 1, 2023
1 parent f93ae9a commit 84a9153
Show file tree
Hide file tree
Showing 15 changed files with 61,023 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/e2e-text.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Cypress Tests

on: push

jobs:
cypress-run:
runs-on: ubuntu-22.04
container:
image: cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1
options: --user 1001
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
Loading

0 comments on commit 84a9153

Please sign in to comment.