This repository has been archived by the owner on Jun 27, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #103
Initially I tried tackling it by really calling
zapier validate
but that command runs a lot more things that don't belong in thebuild
orpush
context.After that I tried to not make duplicate calls or generate the definition file more than once, which required moving some build tasks around.
Also added an option to show any write file error with --debug.
I tried adding tests but since this is for the whole
zapier build
orzapier push
, it's very difficult. I ended up just making a lot of tests with apps, locally.Relevant Trello Card.
What this changes
zapier build
now errors if there are failing style checkszapier push
now errors if there are failing style checks in thebuild
part, instead of theupload
part (sooner)Screenshots
Failing
push
because of validation now, on thebuild
level.Failing
build
for a non-style-check-related failure.Passing
push