From 4f46276ebf8c4433f25102c29a68da5b01c0de95 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Thu, 15 Jan 2026 12:45:13 +0900 Subject: [PATCH 1/3] Fix for CI --- src/deps.ts | 2 +- test/harness/obsidian-mock.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/deps.ts b/src/deps.ts index 330c3df..08a78f7 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -31,7 +31,6 @@ export { TextComponent, ToggleComponent, DropdownComponent, - ValueComponent, } from "obsidian"; export type { DataWriteOptions, @@ -40,6 +39,7 @@ export type { RequestUrlResponse, MarkdownFileInfo, ListedFiles, + ValueComponent, } from "obsidian"; import { normalizePath as normalizePath_ } from "obsidian"; const normalizePath = normalizePath_ as (from: T) => T; diff --git a/test/harness/obsidian-mock.ts b/test/harness/obsidian-mock.ts index 291e7e6..cccceb9 100644 --- a/test/harness/obsidian-mock.ts +++ b/test/harness/obsidian-mock.ts @@ -991,3 +991,5 @@ export type ListedFiles = { files: string[]; folders: string[]; }; + +export type ValueComponent = any; \ No newline at end of file From 9cdc14dda809d8176d0fc50366c15b12c49e6072 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Thu, 15 Jan 2026 12:45:29 +0900 Subject: [PATCH 2/3] Fix: CI --- .github/workflows/harness-ci.yml | 41 ++++++++++---------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/.github/workflows/harness-ci.yml b/.github/workflows/harness-ci.yml index b83aa31..1d0c646 100644 --- a/.github/workflows/harness-ci.yml +++ b/.github/workflows/harness-ci.yml @@ -1,14 +1,17 @@ -# Run tests with optional coverage reporting (Harnessed CI) +# Run tests by Harnessed CI name: harness-ci on: workflow_dispatch: inputs: - coverage: - description: 'Run with coverage' - type: boolean - default: false - required: false + testsuite: + description: 'Run specific test suite (leave empty to run all)' + type: select + options: + - '' + - 'suite/' + - 'suitep2p/' + default: '' permissions: contents: read @@ -38,34 +41,16 @@ jobs: - name: Start test services (CouchDB + MinIO + Nostr Relay + WebPeer) run: npm run test:docker-all:start - - name: Run tests suite (no coverage) - if: ${{ inputs.coverage == false }} + - name: Run tests suite + if: ${{ inputs.testsuite == '' || inputs.testsuite == 'suite/' }} env: CI: true run: npm run test suite/ - - - name: Run P2P tests suite (no coverage) - if: ${{ inputs.coverage == false }} + - name: Run P2P tests suite + if: ${{ inputs.testsuite == '' || inputs.testsuite == 'suitep2p/' }} env: CI: true run: npm run test suitep2p/ - - name: Run tests with coverage - if: ${{ inputs.coverage == true }} - env: - CI: true - run: npm run test:coverage suite/ - - name: Run P2P tests with coverage - if: ${{ inputs.coverage == true }} - env: - CI: true - run: npm run test:coverage suitep2p - - name: Upload coverage artifact - if: ${{ inputs.coverage && always() }} - uses: actions/upload-artifact@v4 - with: - name: coverage - path: coverage/ - - name: Stop test services if: always() run: npm run test:docker-all:stop \ No newline at end of file From 7965f5342c1278376abba882c494390d7ce088a3 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Thu, 15 Jan 2026 12:47:26 +0900 Subject: [PATCH 3/3] Fix type --- .github/workflows/harness-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/harness-ci.yml b/.github/workflows/harness-ci.yml index 1d0c646..7cf4c34 100644 --- a/.github/workflows/harness-ci.yml +++ b/.github/workflows/harness-ci.yml @@ -6,7 +6,7 @@ on: inputs: testsuite: description: 'Run specific test suite (leave empty to run all)' - type: select + type: choice options: - '' - 'suite/'