Hacker News new | ask | show | jobs
by Havoc 1722 days ago
>Hi there! I'm on the team

Could you add a validate switch? Something I can integate into a CI pipeline that basically takes a look at whether it is a valid CF worker. Obviously running a linter over it already but presumably there are CF specific checks that could be added. Thanks

1 comments

Could you share more detail about your usecase? What kind of checks are you looking for? I'd be happy to have a look at that (and presumably if we could do it before it gets uploaded, that would be great)
>What kind of checks are you looking for?

A very basic rudementary static code analysis that can check whether this is a valid CF worker configuration.

>Could you share more detail about your usecase?

In a CI configuration like gitlab CI. e.g. Currently I'm using an incredibly hacky setup that loads the function into miniflare locally, hits then endpoint with a curl and checks that it comes back with 200 HTTP.

If yes then assumption is that it's sound & next stage of CI can actually deploy the function.

Not super high priority though - please prioritise other requests above this since I've already got a working duct tape fix for my problem