mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-01 16:27:07 +00:00
Fix: CI
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: select
|
||||||
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
|
||||||
Reference in New Issue
Block a user