From ca3f8e70cc18bcd700e5c8611a09eeca2d005aa1 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:44:28 +0600 Subject: [PATCH 1/4] [FSSDK-10437] jest coverage report job addition --- .github/workflows/react.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/react.yml b/.github/workflows/react.yml index d03559c..2b63ccd 100644 --- a/.github/workflows/react.yml +++ b/.github/workflows/react.yml @@ -24,6 +24,14 @@ jobs: run: yarn install - name: Run tests run: yarn test + + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ArtiomTr/jest-coverage-report-action@v2 + with: + custom-title: 'Code Coverage Report' integration_tests: name: Run integration tests From 29f939ae972d5d3afc0d8a7ba1a5a69952a4c95b Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Tue, 10 Sep 2024 20:14:29 +0600 Subject: [PATCH 2/4] [FSSDK-10437] local script addition --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 708d1a5..f1c8816 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "build:win": "(if exist dist rd /s/q dist) && node ./scripts/winbuild.js", "lint": "tsc --noEmit && eslint 'src/**/*.{js,ts,tsx}' --quiet --fix", "test": "jest --silent", + "test-coverage": "jest --coverage --coverageReporters=\"text-summary\" --silent", "prepublishOnly": "npm run test && npm run build", "prepare": "npm run build && husky install" }, From 35b14a8fc7d08b1a79715f87ecdb872551455672 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Tue, 10 Sep 2024 20:16:40 +0600 Subject: [PATCH 3/4] [FSSDK-10437] job name and title adjustment --- .github/workflows/react.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/react.yml b/.github/workflows/react.yml index 2b63ccd..bb00cbb 100644 --- a/.github/workflows/react.yml +++ b/.github/workflows/react.yml @@ -26,12 +26,13 @@ jobs: run: yarn test coverage: + name: Jest Coverage Report runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: ArtiomTr/jest-coverage-report-action@v2 with: - custom-title: 'Code Coverage Report' + custom-title: 'Jest Coverage Report' integration_tests: name: Run integration tests From 6fed8816d7994d43d4e38bce0b7d937963c3c1ce Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:12:36 +0600 Subject: [PATCH 4/4] [FSSDK-10437] package manager & pre-requisite addition --- .github/workflows/react.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/react.yml b/.github/workflows/react.yml index bb00cbb..d4c298e 100644 --- a/.github/workflows/react.yml +++ b/.github/workflows/react.yml @@ -28,11 +28,13 @@ jobs: coverage: name: Jest Coverage Report runs-on: ubuntu-latest + needs: [ unitTests ] steps: - uses: actions/checkout@v3 - uses: ArtiomTr/jest-coverage-report-action@v2 with: custom-title: 'Jest Coverage Report' + package-manager: 'yarn' integration_tests: name: Run integration tests