mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-17 18:16:01 +00:00
Merge branch 'main' of https://github.com/vrtmrz/obsidian-livesync
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
# Run tests with optional coverage reporting (Harnessed CI)
|
# Run tests by Harnessed CI
|
||||||
name: harness-ci
|
name: harness-ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
coverage:
|
testsuite:
|
||||||
description: 'Run with coverage'
|
description: 'Run specific test suite (leave empty to run all)'
|
||||||
type: boolean
|
type: choice
|
||||||
default: false
|
options:
|
||||||
required: false
|
- ''
|
||||||
|
- 'suite/'
|
||||||
|
- 'suitep2p/'
|
||||||
|
default: ''
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -38,34 +41,16 @@ jobs:
|
|||||||
- name: Start test services (CouchDB + MinIO + Nostr Relay + WebPeer)
|
- name: Start test services (CouchDB + MinIO + Nostr Relay + WebPeer)
|
||||||
run: npm run test:docker-all:start
|
run: npm run test:docker-all:start
|
||||||
|
|
||||||
- name: Run tests suite (no coverage)
|
- name: Run tests suite
|
||||||
if: ${{ inputs.coverage == false }}
|
if: ${{ inputs.testsuite == '' || inputs.testsuite == 'suite/' }}
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
run: npm run test suite/
|
run: npm run test suite/
|
||||||
|
- name: Run P2P tests suite
|
||||||
- name: Run P2P tests suite (no coverage)
|
if: ${{ inputs.testsuite == '' || inputs.testsuite == 'suitep2p/' }}
|
||||||
if: ${{ inputs.coverage == false }}
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
run: npm run test suitep2p/
|
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
|
- name: Stop test services
|
||||||
if: always()
|
if: always()
|
||||||
run: npm run test:docker-all:stop
|
run: npm run test:docker-all:stop
|
||||||
+1
-1
@@ -31,7 +31,6 @@ export {
|
|||||||
TextComponent,
|
TextComponent,
|
||||||
ToggleComponent,
|
ToggleComponent,
|
||||||
DropdownComponent,
|
DropdownComponent,
|
||||||
ValueComponent,
|
|
||||||
} from "obsidian";
|
} from "obsidian";
|
||||||
export type {
|
export type {
|
||||||
DataWriteOptions,
|
DataWriteOptions,
|
||||||
@@ -40,6 +39,7 @@ export type {
|
|||||||
RequestUrlResponse,
|
RequestUrlResponse,
|
||||||
MarkdownFileInfo,
|
MarkdownFileInfo,
|
||||||
ListedFiles,
|
ListedFiles,
|
||||||
|
ValueComponent,
|
||||||
} from "obsidian";
|
} from "obsidian";
|
||||||
import { normalizePath as normalizePath_ } from "obsidian";
|
import { normalizePath as normalizePath_ } from "obsidian";
|
||||||
const normalizePath = normalizePath_ as <T extends string | FilePath>(from: T) => T;
|
const normalizePath = normalizePath_ as <T extends string | FilePath>(from: T) => T;
|
||||||
|
|||||||
@@ -991,3 +991,5 @@ export type ListedFiles = {
|
|||||||
files: string[];
|
files: string[];
|
||||||
folders: string[];
|
folders: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ValueComponent = any;
|
||||||
Reference in New Issue
Block a user