From a029b63ee05ec0d39949bed320cb69925dbfe48f Mon Sep 17 00:00:00 2001 From: braddf Date: Mon, 22 Apr 2024 16:07:45 +0100 Subject: [PATCH] Fix CI test setup --- .github/workflows/yarn_test.yaml | 2 +- apps/nowcasting-app/package.json | 2 +- clover.xml | 62 ++++++++++++++++---------------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/yarn_test.yaml b/.github/workflows/yarn_test.yaml index 467ec493..72e06b65 100644 --- a/.github/workflows/yarn_test.yaml +++ b/.github/workflows/yarn_test.yaml @@ -24,4 +24,4 @@ jobs: - name: run tests run: | cd apps/nowcasting-app - yarn test --coverage --coverageDirectory=../.. \ No newline at end of file + yarn build && yarn start & sleep 5 && yarn test --coverage --coverageDirectory=../.. diff --git a/apps/nowcasting-app/package.json b/apps/nowcasting-app/package.json index 933f8ece..bf2f3293 100644 --- a/apps/nowcasting-app/package.json +++ b/apps/nowcasting-app/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "next dev -p 3002", "build": "next build", - "start": "next start", + "start": "next start -p 3002", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", "lint": "next lint", diff --git a/clover.xml b/clover.xml index f2bff6ca..d74c9fab 100644 --- a/clover.xml +++ b/clover.xml @@ -1,10 +1,10 @@ - - + + - + @@ -62,13 +62,13 @@ - + - + @@ -95,7 +95,7 @@ - + @@ -145,35 +145,35 @@ - + - - - - - + + + + - + - - - + + + - - + + - + - - - - + + + + + - + @@ -241,14 +241,14 @@ - - + + - - - + + + - + @@ -444,7 +444,7 @@ - +