mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-05-17 00:16:06 +03:00
Modify unit-ci to upload coverage
This commit is contained in:
16
.github/workflows/unit-ci.yml
vendored
16
.github/workflows/unit-ci.yml
vendored
@@ -30,8 +30,16 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Install test dependencies (Playwright Chromium)
|
# unit tests do not require Playwright, so we can skip installing its dependencies to save time
|
||||||
run: npm run test:install-dependencies
|
# - name: Install test dependencies (Playwright Chromium)
|
||||||
|
# run: npm run test:install-dependencies
|
||||||
|
|
||||||
- name: Run unit tests suite
|
- name: Run unit tests suite with coverage
|
||||||
run: npm run test:unit
|
run: npm run test:unit:coverage
|
||||||
|
|
||||||
|
- name: Upload coverage report
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: coverage-report
|
||||||
|
path: coverage/**
|
||||||
@@ -26,7 +26,7 @@ export default mergeConfig(
|
|||||||
...importOnlyFiles,
|
...importOnlyFiles,
|
||||||
],
|
],
|
||||||
provider: "v8",
|
provider: "v8",
|
||||||
reporter: ["text", "json", "html"],
|
reporter: ["text", "json", "html", ["text", { file: "coverage-text.txt" }]],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user