mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-01-20 20:25:28 +00:00
Merge branch 'main' of https://github.com/vrtmrz/obsidian-livesync
This commit is contained in:
41
.github/workflows/harness-ci.yml
vendored
41
.github/workflows/harness-ci.yml
vendored
@@ -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: choice
|
||||
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
|
||||
@@ -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 <T extends string | FilePath>(from: T) => T;
|
||||
|
||||
@@ -991,3 +991,5 @@ export type ListedFiles = {
|
||||
files: string[];
|
||||
folders: string[];
|
||||
};
|
||||
|
||||
export type ValueComponent = any;
|
||||
Reference in New Issue
Block a user