Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'skip-tests' option #685

Merged
merged 4 commits into from
Jun 24, 2021
Merged

Conversation

christophebedard
Copy link
Member

@christophebedard christophebedard commented Jun 23, 2021

Closes #684

This adds a skip-tests option. When set to true, it skips tests and coverage data processing.

When the option is enabled, the action prints "Skipping tests" right after colcon build.

Signed-off-by: Christophe Bedard bedard.christophe@gmail.com

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
@christophebedard christophebedard added the enhancement New feature or request label Jun 23, 2021
@christophebedard christophebedard self-assigned this Jun 23, 2021
@christophebedard christophebedard requested a review from a team as a code owner June 23, 2021 00:50
@christophebedard christophebedard requested review from emersonknapp and zmichaels11 and removed request for a team June 23, 2021 00:50
@codecov
Copy link

codecov bot commented Jun 23, 2021

Codecov Report

Merging #685 (cf66d2d) into master (7c7c917) will decrease coverage by 1.44%.
The diff coverage is 7.14%.

❗ Current head cf66d2d differs from pull request most recent head eacf631. Consider uploading reports for the commit eacf631 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #685      +/-   ##
==========================================
- Coverage   50.00%   48.55%   -1.45%     
==========================================
  Files           2        2              
  Lines         238      243       +5     
  Branches       52       53       +1     
==========================================
- Hits          119      118       -1     
- Misses        119      125       +6     
Impacted Files Coverage Δ
src/action-ros-ci.ts 41.58% <7.14%> (-1.48%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c7c917...eacf631. Read the comment docs.

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
@christophebedard christophebedard force-pushed the christophebedard/add-skip-tests-option branch from 51a340c to efe07dd Compare June 23, 2021 02:01
Copy link
Contributor

@emersonknapp emersonknapp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - but it might be nice to refactor a bit for readability

...options,
ignoreReturnCode: true,
});
if (!skipTests) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is fine - but a nitpick: the indentation of this entire block suggests that it could be a separate function.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in eacf631

Other stuff should probably be split out at some point too.

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
@emersonknapp emersonknapp merged commit f76e702 into master Jun 24, 2021
@emersonknapp emersonknapp deleted the christophebedard/add-skip-tests-option branch June 24, 2021 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide option to only build without running tests
3 participants