Skip to content

Commit 97887f3

Browse files
committed
module path
1 parent fb7241d commit 97887f3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
platform: github
5858
base_url: https://github.com
5959
module: backend # Optional: for monorepo setups
60+
module_path: services/backend # Optional: path for resolving files in monorepo
6061
```
6162
6263
## Inputs
@@ -69,6 +70,7 @@ jobs:
6970
| `platform` | Git platform (github, gitlab, bitbucket) | No | `github` |
7071
| `base_url` | Base URL of the git platform | No | `https://github.com` |
7172
| `module` | Module name for monorepo setups (optional) | No | `''` |
73+
| `module_path` | Module path for resolving files in monorepo (e.g., services/backend, defaults to module if not provided) | No | `''` |
7274

7375
## Supported Coverage Formats
7476

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ inputs:
3030
description: 'Module name for monorepo setups (optional)'
3131
required: false
3232
default: ''
33+
module_path:
34+
description: 'Module path for resolving files in monorepo (e.g., services/backend, defaults to module if not provided)'
35+
required: false
36+
default: ''
3337

3438
runs:
3539
using: 'composite'
@@ -65,6 +69,7 @@ runs:
6569
PLATFORM: ${{ inputs.platform }}
6670
BASE_URL: ${{ inputs.base_url }}
6771
MODULE: ${{ inputs.module }}
72+
MODULE_PATH: ${{ inputs.module_path }}
6873
run: |
6974
bash upload_coverage.sh \
7075
-t "$ACCESS_TOKEN" \
@@ -74,4 +79,5 @@ runs:
7479
-p "$PLATFORM" \
7580
-b "$BRANCH" \
7681
-u "$BASE_URL" \
77-
-m "$MODULE"
82+
-m "$MODULE" \
83+
-P "$MODULE_PATH"

0 commit comments

Comments
 (0)