From 2f8cb419dfc7337db112b78b4b486bf7e158dd5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 28 Nov 2023 18:04:30 +0100 Subject: [PATCH] ci: Fix editor tests when coverage is enabled (no-changelog) (#7827) [Test run ](https://github.com/n8n-io/n8n/actions/runs/7021272455/job/19103012704) --- .github/workflows/ci-master.yml | 6 +++--- packages/design-system/vite.config.mts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index 7509fecb8d..715079effb 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.5] + node-version: [18.x, 20.x] steps: - uses: actions/checkout@v3.5.3 @@ -48,7 +48,7 @@ jobs: needs: install-and-build strategy: matrix: - node-version: [18.x, 20.5] + node-version: [18.x, 20.x] with: ref: ${{ inputs.branch }} nodeVersion: ${{ matrix.node-version }} @@ -61,7 +61,7 @@ jobs: needs: install-and-build strategy: matrix: - node-version: [18.x, 20.5] + node-version: [18.x, 20.x] steps: - uses: actions/checkout@v3.5.3 with: diff --git a/packages/design-system/vite.config.mts b/packages/design-system/vite.config.mts index d026973f44..a8ca4559a5 100644 --- a/packages/design-system/vite.config.mts +++ b/packages/design-system/vite.config.mts @@ -15,7 +15,7 @@ export const vitestConfig = defineVitestConfig({ coverage: { enabled: true, provider: 'v8', - reporter: require('../../jest.config.js').coverageReporters, + reporter: process.env.COVERAGE_REPORT === 'true' ? 'text' : 'text-summary', all: true, }, }