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 all smoke tests with the static build #2609

Merged
merged 6 commits into from
Feb 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
astro.build only needs to run once
  • Loading branch information
matthewp committed Feb 18, 2022
commit 79f9d299d75724e6f1834907638812e03594fbfd
5 changes: 5 additions & 0 deletions scripts/smoke/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ async function run() {
}

// Run with the static build too
if(directory.pathname.includes('astro.build')) {
// astro.build uses the static build, so rerunning with the flag actually negates it.
continue;
}

try {
await execa('yarn', ['build', '--', '--experimental-static-build'], { cwd: fileURLToPath(directory), stdout: 'inherit', stderr: 'inherit' });
} catch (err) {
Expand Down