-
Notifications
You must be signed in to change notification settings - Fork 385
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
Add frontend performance CI integration #4761
base: develop
Are you sure you want to change the base?
Conversation
25fbaf0
to
1f6db44
Compare
This file was initially built within #4761, but moved into a separate PR for faster merging.
The Lighthouse data collection works and can be seen here: http://lhci.amp-wp.org/app/projects/amp-for-wordpress/dashboard |
The Lighthouse CI server does not provide a way for making comparisons across URLs, so it's unnecessarily difficult to see the impact of the Optimizer or SSR right now. I've opened an issue on the server repo: GoogleChrome/lighthouse-ci#338 |
Plugin builds for 883c28c are ready 🛎️!
|
No caching of Docker images yet, as that is not yet supported by GitHub Actions (see actions/cache#31).
Although `docker-compose` _within_ a Docker container does seemingly work, any relative path mapping completely breaks, and I couldn't find a sane way of fixing it. Hence the switch to manual construction within the Docker image, so that we don't face "Docker Inception" problems.
As it turns out, you cannot "need" across workflow files.
7b2a8c8
to
309c7a1
Compare
^^^ |
Summary
This PR adds a GitHub Actions workflow called "Build, Test & Measure" with currently two separate jobs:
release-zip
This job checks out the source, fetches Composer and npm dependencies and does a complete build.
It then uploads the produced ZIP file as an artifact with the filename having the form
amp-{branch}-{short-sha}.zip
.Todo:
lighthouse
(depends on
release-zip
)This job sets up a complete WordPress installation, installs both the AMP and the PWA plugins and then runs the Lighthouse CI over a set of URLs to audit the performance.
The assertions are currently disabled, because we're not passing the default recommendation yet, and haven't discussed what our hard targets are.
Todo:
Fixes #4569
Checklist