Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: split migration test

Alex Yanged8480caf025
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 81f432235a..60f8e2a0d1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -299,6 +299,10 @@ jobs:
run: yarn e2e --forbid-only
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
if: ${{ failure() }}
uses: actions/upload-artifact@v3
diff --git a/tests/affine-legacy/0.7.0-canary.18/package.json b/tests/affine-legacy/0.7.0-canary.18/package.json
index ff82301f15..290a28ac8b 100644
--- a/tests/affine-legacy/0.7.0-canary.18/package.json
+++ b/tests/affine-legacy/0.7.0-canary.18/package.json
@@ -4,7 +4,8 @@
"scripts": {
"unzip": "unzip affine-web -d static",
"start": "yarn exec serve -s static -l 8082",
- "e2e": "playwright test && vitest --run"
+ "e2e": "yarn playwright test",
+ "test": "vitest --run"
},
"devDependencies": {
"@affine-test/fixtures": "workspace:*",