You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/github_action.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,19 @@ Alternatively, if you don't need advanced configuration options from a config fi
38
38
39
39
Note: When using a config file alongside action properties, specifying these parameters will override the corresponding values in the config file.
40
40
41
+
## Source Directory
42
+
43
+
Some projects, such as monorepos with multiple projects under the root directory, may require specifying the path to a project's source.
44
+
In such cases, the `source-dir` property can be used to specify the source files location relative to the root directory.
45
+
46
+
```yml
47
+
- name: check test coverage
48
+
uses: vladopajic/go-test-coverage@v2
49
+
with:
50
+
config: ./.testcoverage.yml
51
+
source-dir: ./some_project
52
+
```
53
+
41
54
## Liberal Coverage Check
42
55
43
56
The `go-test-coverage` GitHub Action can be configured to report the current test coverage without enforcing specific thresholds. To enable this functionality in your GitHub workflow, include the `continue-on-error: true` property in the job step configuration. This ensures that the workflow proceeds even if the coverage check fails.
0 commit comments