From 84f5bd52c3dc95e7b738addd4db253294dd792b9 Mon Sep 17 00:00:00 2001 From: Avinash Kumar Deepak Date: Wed, 25 Feb 2026 16:14:12 +0530 Subject: [PATCH] ci: add coverage reporting, bump actions/checkout and setup-node to v4 --- .github/workflows/test.yml | 6 +++--- package.json | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a39783065..2d9ce603be 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,12 @@ jobs: name: Test and lint code base runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: '18.20.x' - run: npm install - - run: npm run test + - run: npm run test -- --coverage - run: npm run typecheck - run: npm run lint diff --git a/package.json b/package.json index 2808169164..d13abdc1a1 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,14 @@ ] }, "jest": { + "coverageReporters": [ + "text-summary" + ], + "coverageThreshold": { + "global": { + "lines": 5 + } + }, "projects": [ { "displayName": "server",