summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2022-02-18 15:40:03 -0600
committerGravatar GitHub <noreply@github.com> 2022-02-18 15:40:03 -0600
commit37d4dd8d57d5423f2d099f9eb81b5b41b6d69403 (patch)
tree354e576172f1fd611dd8c9a9d3240de6e9da9872 /scripts
parent3c2eee573224813aba81192abac4ebc99e2bdf20 (diff)
downloadastro-37d4dd8d57d5423f2d099f9eb81b5b41b6d69403.tar.gz
astro-37d4dd8d57d5423f2d099f9eb81b5b41b6d69403.tar.zst
astro-37d4dd8d57d5423f2d099f9eb81b5b41b6d69403.zip
Improve smoke tests (#2617)
* chore(ci): improve smoke tests * chore: skip www test
Diffstat (limited to 'scripts')
-rw-r--r--scripts/smoke/index.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/smoke/index.js b/scripts/smoke/index.js
index c3c545529..bc81d70c0 100644
--- a/scripts/smoke/index.js
+++ b/scripts/smoke/index.js
@@ -26,10 +26,10 @@ const exampleDir = new URL('examples/', rootDir);
const astroDir = new URL('packages/astro/', rootDir);
/** GitHub configuration for the external "docs" Astro project. */
-const docGithubConfig = { org: 'withastro', name: 'docs', branch: 'main' };
+// const docGithubConfig = { org: 'withastro', name: 'docs', branch: 'main' };
/** GitHub configuration for the external "astro.build" Astro project. */
-const wwwGithubConfig = { org: 'withastro', name: 'astro.build', branch: 'main' };
+// const wwwGithubConfig = { org: 'withastro', name: 'astro.build', branch: 'main' };
/* Application
/* -------------------------------------------------------------------------- */
@@ -41,17 +41,17 @@ async function run() {
const directories = await getChildDirectories(exampleDir);
// TODO Skipped the docs-main test since it is failing at the moment.
- directories.push(/*await downloadGithubZip(docGithubConfig), */ await downloadGithubZip(wwwGithubConfig));
+ // TODO Skipped the www test since it is failing at the moment.
console.log('🤖', 'Preparing', 'yarn');
- await execa('yarn', [], { cwd: fileURLToPath(rootDir), stdout: 'inherit', stderr: 'inherit' });
+ await execa('yarn', [], { cwd: fileURLToPath(rootDir), stdio: 'inherit' });
for (const directory of directories) {
console.log('🤖', 'Testing', directory.pathname.split('/').at(-1));
try {
- await execa('yarn', ['build'], { cwd: fileURLToPath(directory), stdout: 'inherit', stderr: 'inherit' });
+ await execa('yarn', ['run', 'build'], { cwd: fileURLToPath(directory), stdio: 'inherit' });
} catch (err) {
console.log(err);