Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
ci: stop a skipped test step from uploading another package's coverage
Elian Doran1758149e0436
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.ymlindex 41d2e2165c..f7cb1b888a 100644--- a/.github/workflows/dev.yml+++ b/.github/workflows/dev.yml@@ -44,6 +44,7 @@ jobs:run: pnpm typecheck- name: Run the client-side tests+ id: test-clientrun: pnpm run --filter=client test --coverage- name: Upload client test report@@ -55,6 +56,7 @@ jobs:retention-days: 30- name: Run the server-side tests+ id: test-serverrun: pnpm run --filter=server test --coverage- name: Upload server test report@@ -67,39 +69,44 @@ jobs:- name: Upload client coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-client.outcome == 'success' }}with:files: apps/client/test-output/vitest/coverage/lcov.infoflags: client+ disable_search: truefail_ci_if_error: false- name: Upload client test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-client.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: apps/client/test-output/vitest/junit.xmlflags: client+ disable_search: truefail_ci_if_error: false- name: Upload server coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-server.outcome == 'success' }}with:files: apps/server/test-output/vitest/coverage/lcov.infoflags: server+ disable_search: truefail_ci_if_error: false- name: Upload server test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-server.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: apps/server/test-output/vitest/junit.xmlflags: server+ disable_search: truefail_ci_if_error: false- name: Run the standalone tests+ id: test-standalone# Runs the same trilium-core spec set as the server suite, but in# happy-dom + sql.js WASM via BrowserSqlProvider (see# apps/standalone/src/test_setup.ts). Catches differences@@ -108,19 +115,21 @@ jobs:- name: Upload standalone coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-standalone.outcome == 'success' }}with:files: apps/standalone/test-output/vitest/coverage/lcov.infoflags: standalone+ disable_search: truefail_ci_if_error: false- name: Upload standalone test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-standalone.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: apps/standalone/test-output/vitest/junit.xmlflags: standalone+ disable_search: truefail_ci_if_error: false- name: Run CKEditor e2e tests@@ -131,6 +140,7 @@ jobs:pnpm run --filter=ckeditor5-math test- name: Run the CKEditor 5 aggregate tests+ id: test-ckeditor5run: |export CHROMEDRIVER_PATH=$(which chromedriver || find /usr/local/share -name chromedriver -type f 2>/dev/null | head -1)echo "Using chromedriver at: $CHROMEDRIVER_PATH"@@ -138,22 +148,25 @@ jobs:- name: Upload ckeditor5 coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-ckeditor5.outcome == 'success' }}with:files: packages/ckeditor5/test-output/vitest/coverage/lcov.infoflags: ckeditor5+ disable_search: truefail_ci_if_error: false- name: Upload ckeditor5 test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-ckeditor5.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: packages/ckeditor5/test-output/vitest/junit.xmlflags: ckeditor5+ disable_search: truefail_ci_if_error: false- name: Run the CKEditor 5 utils tests+ id: test-ckeditor5-utilsrun: |export CHROMEDRIVER_PATH=$(which chromedriver || find /usr/local/share -name chromedriver -type f 2>/dev/null | head -1)echo "Using chromedriver at: $CHROMEDRIVER_PATH"@@ -161,119 +174,136 @@ jobs:- name: Upload ckeditor5-utils coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-ckeditor5-utils.outcome == 'success' }}with:files: packages/ckeditor5-utils/test-output/vitest/coverage/lcov.infoflags: ckeditor5-utils+ disable_search: truefail_ci_if_error: false- name: Upload ckeditor5-utils test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-ckeditor5-utils.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: packages/ckeditor5-utils/test-output/vitest/junit.xmlflags: ckeditor5-utils+ disable_search: truefail_ci_if_error: false- name: Run the desktop tests+ id: test-desktoprun: pnpm run --filter=desktop test --coverage- name: Upload desktop coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-desktop.outcome == 'success' }}with:files: apps/desktop/test-output/vitest/coverage/lcov.infoflags: desktop+ disable_search: truefail_ci_if_error: false- name: Upload desktop test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-desktop.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: apps/desktop/test-output/vitest/junit.xmlflags: desktop+ disable_search: truefail_ci_if_error: false- name: Run the commons tests+ id: test-commonsrun: pnpm run --filter=commons test --coverage- name: Upload commons coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-commons.outcome == 'success' }}with:files: packages/commons/test-output/vitest/coverage/lcov.infoflags: commons+ disable_search: truefail_ci_if_error: false- name: Upload commons test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-commons.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: packages/commons/test-output/vitest/junit.xmlflags: commons+ disable_search: truefail_ci_if_error: false- name: Run the codemirror tests+ id: test-codemirrorrun: pnpm run --filter=codemirror test --coverage- name: Upload codemirror coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-codemirror.outcome == 'success' }}with:files: packages/codemirror/test-output/vitest/coverage/lcov.infoflags: codemirror+ disable_search: truefail_ci_if_error: false- name: Upload codemirror test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-codemirror.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: packages/codemirror/test-output/vitest/junit.xmlflags: codemirror+ disable_search: truefail_ci_if_error: false- name: Run the express-partial-content tests+ id: test-express-partial-contentrun: pnpm run --filter=express-partial-content test --coverage- name: Upload express-partial-content coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-express-partial-content.outcome == 'success' }}with:files: packages/express-partial-content/test-output/vitest/coverage/lcov.infoflags: express-partial-content+ disable_search: truefail_ci_if_error: false- name: Upload express-partial-content test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-express-partial-content.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: packages/express-partial-content/test-output/vitest/junit.xmlflags: express-partial-content+ disable_search: truefail_ci_if_error: false- name: Run the highlightjs tests+ id: test-highlightjsrun: pnpm run --filter=highlightjs test --coverage- name: Upload highlightjs coverage to Codecovuses: codecov/codecov-action@v7- if: always()+ if: ${{ !cancelled() && steps.test-highlightjs.outcome == 'success' }}with:files: packages/highlightjs/test-output/vitest/coverage/lcov.infoflags: highlightjs+ disable_search: truefail_ci_if_error: false- name: Upload highlightjs test results to Codecovuses: codecov/test-results-action@v1- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && steps.test-highlightjs.outcome != 'skipped' }}with:token: ${{ secrets.CODECOV_TOKEN }}files: packages/highlightjs/test-output/vitest/junit.xmlflags: highlightjs+ disable_search: truefail_ci_if_error: false- name: Run the rest of the tests