An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:white_check_mark: Repair Electron test fixtures and pin Ubuntu runners
Daniel6808f1352a45
diff --git a/.github/workflows/auto_aur_release_stable.yml b/.github/workflows/auto_aur_release_stable.ymlindex 082c77d5e9..35a867c606 100644--- a/.github/workflows/auto_aur_release_stable.yml+++ b/.github/workflows/auto_aur_release_stable.yml@@ -15,7 +15,7 @@ on:jobs:build:if: ${{ github.repository_owner == 'siyuan-note' }}- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04steps:- name: Check tag aka check release typeid: checktagdiff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex 3433287bd9..456843c9d1 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -14,7 +14,7 @@ env:jobs:prepare:name: Prepare- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04outputs:release_title: ${{ steps.release_info.outputs.release_title }}version: ${{ steps.version.outputs.value }}@@ -108,7 +108,7 @@ jobs:languages:name: Language validationneeds: prepare- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04permissions:contents: readsteps:@@ -545,7 +545,7 @@ jobs:${{ github.workspace }}/go/src/github.com/${{ github.repository }}/app/build/siyuan-*-linux.rpmbuild_android:- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04name: ubuntu build android.apk# 测试通过后并行执行 Android 和桌面构建,全部成功后汇总产物并创建发布。needs: [prepare, languages, contracts, frontend-tests]@@ -704,7 +704,7 @@ jobs:create_release:name: Create Release- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04needs: [prepare, build, build_android]steps:- name: Download all artifactsdiff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.ymlindex da604ad5bf..d72a047721 100644--- a/.github/workflows/dockerimage.yml+++ b/.github/workflows/dockerimage.yml@@ -18,7 +18,7 @@ jobs:build:if: ${{ github.repository_owner == 'siyuan-note' }}name: build- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04permissions:packages: writecontents: readdiff --git a/.github/workflows/lock.yml b/.github/workflows/lock.ymlindex d81b3b2057..ce351a916e 100644--- a/.github/workflows/lock.yml+++ b/.github/workflows/lock.yml@@ -11,7 +11,7 @@ permissions:jobs:lock:- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04steps:- uses: dessant/lock-threads@v6with:diff --git a/.github/workflows/target-branch.yml b/.github/workflows/target-branch.ymlindex fb194d187f..4ea4efacd9 100644--- a/.github/workflows/target-branch.yml+++ b/.github/workflows/target-branch.yml@@ -8,7 +8,7 @@ jobs:check-branch:# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#pull_requestif: ${{ github.repository_owner == 'siyuan-note' && (github.event.action == 'opened' || github.event.changes.base) }}- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04permissions:pull-requests: writesteps:diff --git a/.github/workflows/unlock.yml b/.github/workflows/unlock.ymlindex d883d3af6e..0f2044b097 100644--- a/.github/workflows/unlock.yml+++ b/.github/workflows/unlock.yml@@ -9,7 +9,7 @@ on:jobs:unlock:if: ${{ github.event.issue.locked }}- runs-on: ubuntu-latest+ runs-on: ubuntu-24.04permissions:issues: writesteps:diff --git a/app/src/protyle/render/listMindmap/editor.test.ts b/app/src/protyle/render/listMindmap/editor.test.tsindex fc560a5c21..c5f4d4b9c0 100644--- a/app/src/protyle/render/listMindmap/editor.test.ts+++ b/app/src/protyle/render/listMindmap/editor.test.ts@@ -105,6 +105,7 @@ const browserCases = async (sourceCode: string, css: string) => {},};},+ bindLiteCodeActions: noop,setMobileToolbarUndo: noop,getDefaultToolbar: (): unknown[] => [],hideElements: noop,diff --git a/app/tests/avAttributeCarrier.test.js b/app/tests/avAttributeCarrier.test.jsindex d705d58174..d2f239b239 100644--- a/app/tests/avAttributeCarrier.test.js+++ b/app/tests/avAttributeCarrier.test.js@@ -223,6 +223,7 @@ const runElectron = async () => {const sources = [extract("cellValue"), extract("dragFillValue", ["rebindAVCellValue"]),extract("blockAttr", ["renderAVAttribute", "renderAttributeViewBacklinks"]),extract("openMenuPanel", ["openMenuPanel"]), extract("cell", ["updateCellsValue"]),+ extract("primaryFocus", ["focusNewDatabasePrimary"]),extract("../../../editor/databaseRow", ["newDatabaseRowModel"]),extract("openDatabaseRow", ["closeMobileDatabaseRow", "openMobileDatabaseRow"])].map(source =>ts.transpileModule(source, {compilerOptions: {module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES2020}}).outputText);diff --git a/app/tests/verticalNavigation.test.js b/app/tests/verticalNavigation.test.jsindex 64f0ce4bf7..6aaa173095 100644--- a/app/tests/verticalNavigation.test.js+++ b/app/tests/verticalNavigation.test.js@@ -77,6 +77,7 @@ const rendererModules = () => {visitKeyup(wysiwyg);assert.ok(keyupStatements);modules["wysiwyg/navigationKeyup"] = `import {getEditorRange} from "../util/selection";+ import {getBlockSelectionModeElement} from "./blockSelection";import {hasClosestBlock, hasClosestByClassName} from "../util/hasClosest";import {shouldRunAVKeyupFallback} from "../render/av/verticalNavigation";const getAVTemplateInteractiveElement = () => false;