DEV Community

Discussion on: CI/CD tooling for frontend projects using GitHub actions

Collapse
 
ekafyi profile image
Eka

I'm just learning to use Github Actions and my first objective is indeed to run a Lighthouse test and implement a perf budget, and voila I came across this article. :)

On a side note it's interesting to see linting and formatting as part of a GH workflow. Any specific reason why you prefer to run them there instead of, say, using Husky pre-commit hook?

Collapse
 
meetdave3 profile image
Meet Dave

Because it's possible to by-pass a pre-commit hook. Using the linting and formatting in the CI ensures the code integrity. Specially helps when working in teams

Collapse
 
ekafyi profile image
Eka

Good point, cheers!