Skip to content

Commit ed78f96

Browse files
authored
[#144]: chore: update codecov
2 parents d7b71e6 + 78b4acd commit ed78f96

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/linux.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,29 @@ jobs:
7575
- grpc_test
7676
timeout-minutes: 60
7777
steps:
78+
- name: Check out code
79+
uses: actions/checkout@v4
7880
- name: Download code coverage results
7981
uses: actions/download-artifact@v5
82+
with:
83+
name: coverage
84+
path: coverage
8085
- run: |
8186
echo 'mode: atomic' > summary.txt
82-
tail -q -n +2 *.out >> summary.txt
83-
sed -i '2,${/roadrunner/!d}' summary.txt
87+
tail -q -n +2 coverage/*.out >> summary.txt
88+
awk '
89+
NR == 1 { print; next }
90+
/^github\.com\/roadrunner-server\/grpc\/v5\// {
91+
sub(/^github\.com\/roadrunner-server\/grpc\/v5\//, "", $0)
92+
print
93+
next
94+
}
95+
/^github\.com\/roadrunner-server\/grpc\/protoc_plugins\/v5\// {
96+
sub(/^github\.com\/roadrunner-server\/grpc\/protoc_plugins\/v5\//, "protoc_plugins/", $0)
97+
print
98+
}
99+
' summary.txt > summary.filtered.txt
100+
mv summary.filtered.txt summary.txt
84101
- name: upload to codecov
85102
uses: codecov/codecov-action@v5 # Docs: <https://github.com/codecov/codecov-action>
86103
with:

0 commit comments

Comments
 (0)