-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
61,023 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
Oops, something went wrong.