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

Run tests only on changed packages on PR/push #2565

Merged
merged 10 commits into from
Jan 23, 2020
Merged

Conversation

hsubox76
Copy link
Contributor

Trying to run tests only on packages with changed files on PR/push. Entire test suite will continue to run on merge, and twice a day.

Cross-browser tests moved to run only on merge until I can clean up our Saucelabs workflow to make results viewable and useful.

@hsubox76 hsubox76 changed the title WIP: Run tests only on changed packages on PR/push Run tests only on changed packages on PR/push Jan 22, 2020
Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

LGTM with a couple of nits

@@ -0,0 +1,83 @@
/**
* @license
* Copyright 2019 Google Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: 2020

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, also fixed this in the template that auto-adds the license headers.

* @param {Array<string>} pathList
*/
async function runTests(pathList) {
if (!pathList) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

May be log this case: No changes detected in any package

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, added it to runTestsOnChangedPackages since this function is also used to run the integration tests.

@hsubox76 hsubox76 merged commit ee57d26 into master Jan 23, 2020
@firebase firebase locked and limited conversation to collaborators Feb 23, 2020
@hsubox76 hsubox76 deleted the ch-separate-tests branch June 18, 2020 21:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants