Skip to content

Commit

Permalink
ci: Fix incremental coverage reports (#5552)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Aug 30, 2023
1 parent 3932181 commit 75de6e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/compute-incremental-coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

# TODO(joeyparrish): Figure out how to get karma to output relative paths only.
def StripGitDir(path):
# Convert Windows-style paths to Unix-style paths so we can read coverage
# data from Windows runners, too.
path = path.replace('\\', '/')
# Strip the path to the git clone, leaving only the source path within the
# repo.
return re.sub(r'.*?/(lib|ui)/', r'\1/', path)
Expand Down

0 comments on commit 75de6e8

Please sign in to comment.