diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4f8231..8b510b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,6 @@ name: Node.js CI -on: push -# [pull_request] +on: [pull_request] jobs: build: diff --git a/package.json b/package.json index fb0e940..30e73af 100644 --- a/package.json +++ b/package.json @@ -58,11 +58,17 @@ "collectCoverageFrom": [ "src/**/*.{js,jsx,ts,tsx}" ], + "coverageThreshold": { + "global": { + "branches": 39, + "functions": 47, + "lines": 50, + "statements": 49 + } + }, "coverageReporters": [ "html", - "json", - "lcov", - "cobertura" + "lcov" ] } } \ No newline at end of file