feat: cypress text #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |