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",