ci: split migration test

This commit is contained in:
Alex Yang
2023-06-29 14:52:31 +08:00
parent 42ef3c0fc2
commit ed8480caf0
2 changed files with 6 additions and 1 deletions

View File

@@ -299,6 +299,10 @@ jobs:
run: yarn e2e --forbid-only run: yarn e2e --forbid-only
working-directory: ./tests/affine-legacy/0.7.0-canary.18 working-directory: ./tests/affine-legacy/0.7.0-canary.18
- name: Run vitest
run: yarn test
working-directory: ./tests/affine-legacy/0.7.0-canary.18
- name: Upload test results - name: Upload test results
if: ${{ failure() }} if: ${{ failure() }}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3

View File

@@ -4,7 +4,8 @@
"scripts": { "scripts": {
"unzip": "unzip affine-web -d static", "unzip": "unzip affine-web -d static",
"start": "yarn exec serve -s static -l 8082", "start": "yarn exec serve -s static -l 8082",
"e2e": "playwright test && vitest --run" "e2e": "yarn playwright test",
"test": "vitest --run"
}, },
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",