-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/nx-dependencies-5566…
…a3e5ff
- Loading branch information
Showing
2 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# codecov.yml | ||
|
||
# Configure base settings | ||
#codecov: | ||
# notify: | ||
# require_ci_to_pass: yes # Requires CI tests to pass before sending coverage | ||
|
||
# Paths to include coverage reports from multiple projects | ||
coverage: | ||
# Define paths to include or exclude for coverage | ||
paths: | ||
- apps/* # Adjust paths based on your monorepo structure | ||
- libs/* # Example for libraries directory | ||
status: | ||
project: | ||
# Configure status check for each app and library in the monorepo | ||
- apps/acf-configs: # Replace with your actual app directory names | ||
flags: | ||
- configs | ||
target: 80% # Set a target coverage | ||
- apps/acf-extension: # Replace with your actual app directory names | ||
flags: | ||
- extension | ||
target: 80% # Set a target coverage | ||
- apps/acf-options-page: # Replace with your actual app directory names | ||
flags: | ||
- options-page | ||
target: 80% # Set a target coverage | ||
- libs/core-common: # Replace with library names | ||
flags: | ||
- core-common | ||
target: 75% | ||
|
||
# Flags help you manage separate coverage for each app and library | ||
flags: | ||
configs: | ||
paths: | ||
- coverage/apps/acf-configs | ||
extension: | ||
paths: | ||
- coverage/apps/acf-extension | ||
options-page: | ||
paths: | ||
- coverage/apps/acf-options-page | ||
core-common: | ||
paths: | ||
- coverage/core/common | ||
|
||
# Define how to handle test report merging, threshold settings, etc. | ||
comment: | ||
layout: "reach,diff,flags,files" # Layout of the Codecov comment in PRs | ||
require_changes: no # Only post comments if coverage changes | ||
|
||
# Thresholds for failing the coverage checks | ||
coverage: | ||
precision: 2 # Coverage percentage precision | ||
round: up # Round coverage percentages up | ||
range: "70...100" # Acceptable coverage range |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const nxPreset = require('@nx/jest/preset').default; | ||
module.exports = { ...nxPreset }; | ||
module.exports = { ...nxPreset, coverageReporters: ['lcov'] }; |