Replies: 4 comments
-
|
@phritolay Would the Github Action block a PR from being merged until they pass? There is a small chance that the pre-commit hook would be bypassed but it still exists. Side note: Would be nice to stop deploy for |
Beta Was this translation helpful? Give feedback.
-
|
I think @dholloran-ample is on to something. We may be overthinking this when deploy contexts could make this simple. Run specs and linting only in deploy previews and not for production builds? Is it overkill to have the pre-push hook and have Netlify run the specs/linting? There's something really nice about having those things run locally on push. They aren't long-running processes, but it's really annoying when a build fails in a PR for something that was quick to fix. |
Beta Was this translation helpful? Give feedback.
-
|
Based on our Dev Lab conversation this week, we'd like to:
@phritolay @dholloran-ample Do you agree with this direction? |
Beta Was this translation helpful? Give feedback.
-
|
@seancdavis - Yes, that seems good to me. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We added a
pre-pushhook using husky to run specs prior to opening a PR to help a dev know if tests are failing sooner, rather than waiting for a build to fail on Netlify. Currently linters and tests run with both apre-pushhook and on Netlify builds, so it would be nice to remove the scripts fromnetlify:buildto speed up builds. However thepre-pushhook can be bypassed using--no-verifywhich could result in failing specs and a passing build. How should we handle this? My initial thought is we could run specs using GitHub Actions to ensure the specs are not bypassed by a dev, but will help speed up the build process.Beta Was this translation helpful? Give feedback.
All reactions