mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-06 19:52:24 +03:00
ci(frontend): skip mobile checks for desktop changes
This commit is contained in:
1 parent
538785ef88
commit
77fb1c59f0
1 file changed
+10
-1
@@ -33,6 +33,7 @@ jobs:
|
||||
outputs:
|
||||
web-host-only: ${{ steps.classify.outputs.web_host_only }}
|
||||
desktop-leaf-only: ${{ steps.classify.outputs.desktop_leaf_only }}
|
||||
desktop-rs-only: ${{ steps.classify.outputs.desktop_rs_only }}
|
||||
backend-only: ${{ steps.classify.outputs.backend_only }}
|
||||
web-wrapper-only: ${{ steps.classify.outputs.web_wrapper_only }}
|
||||
apple-specific: ${{ steps.base.outputs.force_all == 'true' && 'true' || steps.classify.outputs.apple_specific }}
|
||||
@@ -154,6 +155,7 @@ jobs:
|
||||
node --test perf/compare-n3.test.mjs
|
||||
|
||||
- name: Install Linux fontconfig, Mesa Lavapipe Vulkan, and CJK fallback font
|
||||
if: needs.changes.outputs.desktop-leaf-only != 'true'
|
||||
run: |
|
||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||
sudo apt-get update
|
||||
@@ -177,22 +179,27 @@ jobs:
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
- name: Clippy check
|
||||
if: needs.changes.outputs.desktop-leaf-only != 'true'
|
||||
working-directory: packages/frontend
|
||||
run: cargo clippy --locked --workspace --all-targets --features harness -- -D warnings
|
||||
|
||||
- name: Host and preview tests
|
||||
if: needs.changes.outputs.desktop-leaf-only != 'true'
|
||||
working-directory: packages/frontend
|
||||
run: cargo test --locked -p affine-android-host -p affine-ios-host -p blocksuite-preview --all-features
|
||||
|
||||
- name: Mobile tests
|
||||
if: needs.changes.outputs.desktop-leaf-only != 'true'
|
||||
working-directory: packages/frontend
|
||||
run: cargo test --locked -p affine-mobile --all-targets
|
||||
|
||||
- name: Mobile harness audit matrix
|
||||
if: needs.changes.outputs.desktop-leaf-only != 'true'
|
||||
working-directory: packages/frontend
|
||||
run: cargo run --locked -p affine-mobile --features harness --bin mobile-harness -- audit-matrix
|
||||
|
||||
- name: Mobile harness frame replay
|
||||
if: needs.changes.outputs.desktop-leaf-only != 'true'
|
||||
working-directory: packages/frontend
|
||||
run: cargo run --locked -p affine-mobile --features harness --bin mobile-harness -- fps-replay
|
||||
|
||||
@@ -301,7 +308,9 @@ jobs:
|
||||
preview-wasm-workers:
|
||||
name: Preview Wasm Workers (4 Independent Targets)
|
||||
needs: changes
|
||||
if: needs.changes.outputs.backend-only != 'true'
|
||||
if: >-
|
||||
needs.changes.outputs.backend-only != 'true' &&
|
||||
needs.changes.outputs.desktop-rs-only != 'true'
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 20
|
||||
defaults:
|
||||
|
||||
Reference in new issue
Block a user