Skip to content

Commit 0fcfb5e

Browse files
authored
Add root_dir to Codecov action (#5883)
* Add root_dir to Codecov action Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]> * Fix Codecov flag because it doesn't support slash Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]> --------- Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
1 parent 7fe3f2d commit 0fcfb5e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ jobs:
4343
cache: true
4444
- name: Run unit tests
4545
run: make test/go COVERAGE=true MODULES=${{ matrix.module }}
46+
- name: make flag
47+
id: make-flag
48+
run: |
49+
echo "flags=$(echo ${{ matrix.module }} | tr '/' '-')" >> $GITHUB_OUTPUT
4650
- name: Upload coverage reports to Codecov
4751
uses: codecov/codecov-action@v3
4852
with:
49-
flags: ${{ matrix.module }}
53+
root_dir: ${{ matrix.module }}
54+
flags: ${{ steps.make-flag.outputs.flags }}
5055
env:
5156
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5257

0 commit comments

Comments
 (0)