From dbe42713367bf0828c9d6e2a3df07600783a148c Mon Sep 17 00:00:00 2001 From: "Aman Kumar [SSW]" <71385247+amankumarrr@users.noreply.github.com> Date: Wed, 21 Feb 2024 10:46:34 +1100 Subject: [PATCH] Changing threshold and adding rights for writing --- .github/workflows/code-coverage.yml | 7 ++++++- jest.config.ts | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 777cbb8339..496ae712be 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -4,6 +4,11 @@ on: branches: - main +permissions: + checks: write + pull-requests: write + contents: write + jobs: coverage: runs-on: ubuntu-latest @@ -15,4 +20,4 @@ jobs: package-manager: pnpm test-script: pnpm test working-directory: / - skip-step: all + coverage-file: coverage/coverage-final.json diff --git a/jest.config.ts b/jest.config.ts index 1dc48ff325..836d1bd40b 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -102,6 +102,7 @@ const config: Config = { coverageThreshold: { global: { lines: 80, + branches: 1, }, },