-
Notifications
You must be signed in to change notification settings - Fork 38
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
Issue 14 add ci build and documentation for critical #16
Issue 14 add ci build and documentation for critical #16
Conversation
Hmm, this is still building against my fork and not from here Might try and use this as an opportunity to see if there's a way to make sure CircleCI actually fails the build for a situation like this. |
This support article suggested deleting any existing webhooks (which I had on my fork, and have now removed) and setting up the project again. @anthonygore |
Done |
thanks @anthonygore . still doesn't seem to be building. could you please confirm a couple things?
thanks! |
Hi Owen. All those settings are correct. I just created a branch and pull request to test it and triggered a build, so I'm not sure what the cause of your troubles are! |
f88ef66
to
9d09dc0
Compare
AH HA! There we go 😊 . I still had a project configuration for my fork in CircleCi, even though it wasn't building anything (I had only deleted the webhook in GitHub). So I deleted it and 🎉 ! @anthonygore |
5e08703
to
9d09dc0
Compare
@anthonygore |
Brilliant! Thanks, Owen. I'll go through this shortly. |
resolves #14
Overview
This PR aims to document this project's dependency on critical which was updated recently to use Headless Chrome (via puppeteer) (instead of PhantomJS).
This now requires consuming build time environments have support to run Headless Chrome.
Changes
Notes:
Before
Ran the build once using a "stock" Docker image, circleci/node:8.9.4 to help demonstrate the issue of the build needed Headless Chrome packages.
We can see that when the tests run, which invoke HtmlCriticalWebpackPlugin and ultimately critical, we get a node error attributed to puppeteer under the "Run Tests" section. (ideally this should cause the build to fail though but seems to be a mocha / node related issue)
After
Then updated the PR to use a Docker image I put together specifically with the goal of being able to run Headless Chrome for NodeJS projects, and now we get the test results we're looking for! ✅
My Docker image is pretty straightforward
TODO
try and get CircleCI to fail in the "before" case where the build should fail because Headless Chrome wasn't startedThis seems out of scope for this PR, and should be tracked in the mocha issue tracker