diff options
author | Kane York <kanepyork@gmail.com> | 2020-07-17T04·27-0700 |
---|---|---|
committer | Kane York <rikingcoding@gmail.com> | 2020-07-17T22·55+0000 |
commit | 4dd236be53536e851d2dcb7fab205e999970517f (patch) | |
tree | 29224e85d75aef953f8dee3766bbbfef67aee479 /nix/bufCheck/default.nix | |
parent | cf3418403863d8b733d9784126c8e2e5928ba34a (diff) |
feat(ci): run buf check lint in CI r/1366
Breaking change detection will run but not enforce. Emoji of water buffalo was chosen by @pedge fiat in the bufbuild slack. Change-Id: Ie292f2bfddc0e3bc512e4a138c0b5d0fa2603bad Reviewed-on: https://cl.tvl.fyi/c/depot/+/1247 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'nix/bufCheck/default.nix')
-rw-r--r-- | nix/bufCheck/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nix/bufCheck/default.nix b/nix/bufCheck/default.nix new file mode 100644 index 000000000000..6d17cb460ecf --- /dev/null +++ b/nix/bufCheck/default.nix @@ -0,0 +1,9 @@ +# Check protobuf syntax and breaking. +# +{ depot, pkgs, ... }: + +pkgs.writeShellScriptBin "ci-buf-check" '' + ${depot.third_party.bufbuild}/bin/buf check lint --input "${depot.depotPath}" + # Report-only + ${depot.third_party.bufbuild}/bin/buf check breaking --input "${depot.depotPath}" --against-input "${depot.depotPath}/.git#branch=canon" || true +'' |