Skip to content

Commit

Permalink
ci: fix sed commands
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Oct 9, 2024
1 parent aa8688e commit 6be6934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ jobs:
bash -c \
'if [ -f "coverage/clover.xml" ]; then \
# Make file paths relative
sed -i "" "s|'$PWD'/||g" "coverage/clover.xml"; \
sed -i "s|'$PWD'/||g" "coverage/clover.xml"; \
cp -f "coverage/clover.xml" "'$PWD'/coverage/$(basename $PWD).xml"; \
fi; \
if [[ -f "junit.xml" && -s "junit.xml" ]]; then \
# Set the testsuites name to the package name
sed -i "" "s|<testsuites name=\".*\">|<testsuites name=\"$npm_package_name\">|" "junit.xml"; \
sed -i "s|<testsuites name=\".*\">|<testsuites name=\"$npm_package_name\">|" "junit.xml"; \
cp -f "junit.xml" "'$PWD'/junit/$(basename $PWD).xml"; \
fi'
Expand Down

0 comments on commit 6be6934

Please sign in to comment.