-
Notifications
You must be signed in to change notification settings - Fork 9
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
ci: run only failed tests when re-running #281
Conversation
- name: Save failed tests | ||
id: cache-tests-save | ||
uses: actions/cache/save@v3 | ||
if: always() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would even put here if: failure()
so we don't bother trying to save nothing when nothing fails.
- name: Save failed tests | ||
id: cache-tests-save | ||
uses: actions/cache/save@v3 | ||
if: always() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
.github/workflows/unit-tests.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's worth adding to unit tests at all - they run in seconds and rerunning them is no big deal. Let's keep them simple!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just trim the whitespace in unit-test.yml
to keep the changelog clean
Kudos, SonarCloud Quality Gate passed! |
using cache in the ci in order to re-run only the failed tests in order to save some time