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

feat: install playwright dependencies ourselves #126

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

dlockhart
Copy link
Member

To avoid consumers having to run this in CI anytime they use d2l-test-runner, this installs it automatically for them. In testing, it appears to be a no-op if they're already installed.

@dlockhart dlockhart requested a review from a team as a code owner August 10, 2023 18:24
@@ -196,7 +197,12 @@ async function getTestRunnerOptions(argv = []) {
};
}

function installDeps() {
execSync('npx playwright install-deps', { stdio: 'pipe' });
Copy link
Member Author

Choose a reason for hiding this comment

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

I played around with the async version of this and wrapped it in a Promise, but marshalling the stdout/err around seemed way more complicated than it was worth. Open to other suggestions though.

bin/d2l-test-runner.js Outdated Show resolved Hide resolved
Co-authored-by: Danny Gleckler <[email protected]>
@dlockhart dlockhart merged commit 34ef730 into main Aug 10, 2023
1 check passed
@dlockhart dlockhart deleted the dlockhart/install-playwright-deps branch August 10, 2023 18:41
@ghost
Copy link

ghost commented Aug 10, 2023

🎉 This PR is included in version 0.28.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants