提交 c44a88c5 编写于 作者: fxy060608's avatar fxy060608

chore(workflows): cypress

上级 9631e633
......@@ -31,14 +31,21 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-node${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node${{ matrix.node_version }}-
- name: Versions
run: yarn versions
- name: Install dependencies and verify Cypress
run: yarn install --frozen-lockfile
- name: Build
run: npm run build uni-app uni-cli-shared uni-h5 uni-i18n uni-shared vite-plugin-uni
- name: Install ssr
working-directory: ./packages/playground/ssr
run: |
yarn install --frozen-lockfile
npx cypress verify
......@@ -49,13 +56,6 @@ jobs:
npx cypress version --component electron
npx cypress version --component node
- name: Build
run: npm run build uni-app uni-cli-shared uni-h5 uni-i18n uni-shared vite-plugin-uni
- name: Install ssr
working-directory: ./packages/playground/ssr
run: yarn install --frozen-lockfile
- name: Cypress run
uses: cypress-io/github-action@v2
with:
......
......@@ -12,7 +12,7 @@
"ls-lint": "ls-lint",
"test": "jest",
"preinstall": "node ./scripts/checkYarn.js",
"e2e:ssr:open": "cypress open --project packages/playground/ssr",
"e2e:ssr:open": "cd packages/playground/ssr && npx cypress open",
"e2e:ssr:dev": "cd packages/playground/ssr && npm run dev:ssr"
},
"types": "test-dts/index.d.ts",
......@@ -57,7 +57,6 @@
"@typescript-eslint/parser": "^4.12.0",
"@vitejs/plugin-vue": "^1.2.2",
"@vitejs/plugin-vue-jsx": "^1.1.4",
"cypress": "^7.3.0",
"eslint": "^7.17.0",
"fs-extra": "^9.0.1",
"jest": "^26.6.3",
......
......@@ -25,6 +25,7 @@
"@vue/compiler-sfc": "^3.0.11",
"@vue/server-renderer": "^3.0.11",
"compression": "^1.7.4",
"cypress": "^7.3.0",
"serve-static": "^1.14.1",
"vite": "^2.2.3"
}
......
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册