Skip to content

Commit

Permalink
Fix coverage support (#42)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Moulard <[email protected]>
  • Loading branch information
Thomas Moulard authored Dec 6, 2019
1 parent bfb44f6 commit 2bd4324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4910,7 +4910,7 @@ EOF`
.concat(extra_options), options);
// ignoreReturnCode is set to true to avoid having a lack of coverage
// data fail the build.
yield exec.exec("colcon", ["lcov-result", "--packages-select"].concat(packageNameList), { ignoreReturnCode: true });
yield exec.exec("colcon", ["lcov-result", "--packages-select"].concat(packageNameList), { cwd: ros2WorkspaceDir, ignoreReturnCode: true });
}
catch (error) {
core.setFailed(error.message);
Expand Down
2 changes: 1 addition & 1 deletion src/action-ros2-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ EOF`
await exec.exec(
"colcon",
["lcov-result", "--packages-select"].concat(packageNameList),
{ ignoreReturnCode: true }
{ cwd: ros2WorkspaceDir, ignoreReturnCode: true }
);
} catch (error) {
core.setFailed(error.message);
Expand Down

0 comments on commit 2bd4324

Please sign in to comment.