Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

: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.yml
index 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.04
steps:
- name: Check tag aka check release type
id: checktag
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 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.04
outputs:
release_title: ${{ steps.release_info.outputs.release_title }}
version: ${{ steps.version.outputs.value }}
@@ -108,7 +108,7 @@ jobs:
languages:
name: Language validation
needs: prepare
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
permissions:
contents: read
steps:
@@ -545,7 +545,7 @@ jobs:
${{ github.workspace }}/go/src/github.com/${{ github.repository }}/app/build/siyuan-*-linux.rpm
build_android:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
name: 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.04
needs: [prepare, build, build_android]
steps:
- name: Download all artifacts
diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml
index 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.04
permissions:
packages: write
contents: read
diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml
index 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.04
steps:
- uses: dessant/lock-threads@v6
with:
diff --git a/.github/workflows/target-branch.yml b/.github/workflows/target-branch.yml
index 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_request
if: ${{ github.repository_owner == 'siyuan-note' && (github.event.action == 'opened' || github.event.changes.base) }}
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
permissions:
pull-requests: write
steps:
diff --git a/.github/workflows/unlock.yml b/.github/workflows/unlock.yml
index 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.04
permissions:
issues: write
steps:
diff --git a/app/src/protyle/render/listMindmap/editor.test.ts b/app/src/protyle/render/listMindmap/editor.test.ts
index 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.js
index 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.js
index 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;