2020-07-17 06:27:05 +02:00
|
|
|
# Check protobuf syntax and breaking.
|
|
|
|
#
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
pkgs.writeShellScriptBin "ci-buf-check" ''
|
2022-10-21 18:01:02 +02:00
|
|
|
${depot.third_party.nixpkgs.buf}/bin/buf lint .
|
2020-07-17 06:27:05 +02:00
|
|
|
# Report-only
|
2022-10-21 18:01:02 +02:00
|
|
|
${depot.third_party.nixpkgs.buf}/bin/buf breaking . --against "./.git#ref=HEAD~1" || true
|
2020-07-17 06:27:05 +02:00
|
|
|
''
|