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 server tests (#10141)

Brooooooklyn312f9b1ecd0f
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index ef03637a19..c134d06614 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -394,6 +394,11 @@ jobs:
- optimize_ci
- build-server-native
if: needs.optimize_ci.outputs.skip == 'false'
+ strategy:
+ fail-fast: false
+ matrix:
+ node_index: [0, 1, 2]
+ total_nodes: [3]
env:
NODE_ENV: test
DISTRIBUTION: web
@@ -443,6 +448,8 @@ jobs:
env:
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
COPILOT_OPENAI_API_KEY: 'use_fake_openai_api_key'
+ CI_NODE_INDEX: ${{ matrix.node_index }}
+ CI_NODE_TOTAL: ${{ matrix.total_nodes }}
- name: Upload server test coverage results
uses: codecov/codecov-action@v5