Fix codecov status check (#13646)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-10-17 08:25:32 +08:00
1 parent 0e9a0c47f2
commit 7f1d4913d1
4 files changed
+13 -3

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
comment: off comment: false
coverage: coverage:
status: status:
+1
View File
@@ -72,3 +72,4 @@ jobs:
if: ${{ matrix.ENABLE_CODE_COVERAGE }} if: ${{ matrix.ENABLE_CODE_COVERAGE }}
with: with:
fail_ci_if_error: true fail_ci_if_error: true
files: coverage/lcov.info
+3 -2
View File
@@ -4,7 +4,8 @@ import installPrettier from "./tests/config/install-prettier.js";
const { dirname: PROJECT_ROOT } = createEsmUtils(import.meta); const { dirname: PROJECT_ROOT } = createEsmUtils(import.meta);
const isProduction = process.env.NODE_ENV === "production"; const isProduction = process.env.NODE_ENV === "production";
const ENABLE_CODE_COVERAGE = Boolean(process.env.ENABLE_CODE_COVERAGE); // Disabled https://github.com/nicolo-ribaudo/jest-light-runner/pull/13
// const ENABLE_CODE_COVERAGE = Boolean(process.env.ENABLE_CODE_COVERAGE);
const TEST_STANDALONE = Boolean(process.env.TEST_STANDALONE); const TEST_STANDALONE = Boolean(process.env.TEST_STANDALONE);
const INSTALL_PACKAGE = Boolean(process.env.INSTALL_PACKAGE); const INSTALL_PACKAGE = Boolean(process.env.INSTALL_PACKAGE);
// When debugging production test, this flag can skip installing package // When debugging production test, this flag can skip installing package
@@ -58,7 +59,7 @@ const config = {
"<rootDir>/tests/unit/**/*.js", "<rootDir>/tests/unit/**/*.js",
], ],
testPathIgnorePatterns, testPathIgnorePatterns,
collectCoverage: ENABLE_CODE_COVERAGE, // collectCoverage: ENABLE_CODE_COVERAGE,
collectCoverageFrom: ["<rootDir>/src/**/*.js", "<rootDir>/bin/**/*.js"], collectCoverageFrom: ["<rootDir>/src/**/*.js", "<rootDir>/bin/**/*.js"],
coveragePathIgnorePatterns: [ coveragePathIgnorePatterns: [
"<rootDir>/src/standalone.js", "<rootDir>/src/standalone.js",
+8
View File
@@ -181,6 +181,14 @@
"reporter": [ "reporter": [
"lcov", "lcov",
"text" "text"
],
"include": [
"src/**",
"bin/**"
],
"exclude": [
"src/standalone.js",
"src/document/debug.js"
] ]
}, },
"browserslist": [ "browserslist": [