usecannon / cannon

Manage EVM protocol deployments. Inspired by Docker, Terraform, and npm.
https://usecannon.com
GNU General Public License v3.0
103 stars 20 forks source link

chore(website): improve cypress performance #1287

Closed saeta-eth closed 1 month ago

saeta-eth commented 1 month ago

This PR aims to improve the performance of the Cypress test suite. The goal is to replace the Next.js development server with the output of the build process and run a static file server instead. This approach makes testing faster and more reliable than before. I've included some screenshots showing the improvements:

Before

Screenshot 2024-08-17 at 1 16 23 PM

After:

Screenshot 2024-08-17 at 1 15 53 PM

Overall, the Cypress tests finish in approximately ~8 minutes, compared to the previous ~20 minutes:

Before:

Screenshot 2024-08-17 at 1 24 31 PM

After:

Screenshot 2024-08-17 at 1 25 20 PM
changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: bfe6166ccbc436694babd8608de8550716b7304f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

nx-cloud[bot] commented 1 month ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit bfe6166ccbc436694babd8608de8550716b7304f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target - [`lerna run build --ignore cannon-website --ignore @usecannon/indexer --ignore repo --ignore @usecannon/api`](https://cloud.nx.app/runs/MuQ282XuBA?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.