mirror of https://gitee.com/godoos/godoos.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
658 B
30 lines
658 B
name: cypress
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '.github/workflows/*'
|
|
- 'cypress/**'
|
|
- 'src/**'
|
|
- 'index.html'
|
|
- 'package.json'
|
|
- 'vite.config.ts'
|
|
|
|
jobs:
|
|
cypress:
|
|
runs-on: ubuntu-latest
|
|
container: cypress/browsers:node16.17.0-chrome106
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm i yarn serve@14.0.1 -g
|
|
- run: yarn
|
|
- run: yarn run build
|
|
- run: mv dist canvas-editor
|
|
- run: serve . -l 3000 &
|
|
- run: yarn run cypress:run
|