2020-07-17 06:27:05 +02:00
|
|
|
# Check protobuf syntax and breaking.
|
|
|
|
#
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
pkgs.writeShellScriptBin "ci-buf-check" ''
|
2021-08-29 14:33:09 +02:00
|
|
|
${depot.third_party.bufbuild}/bin/buf check lint --input .
|
2020-07-17 06:27:05 +02:00
|
|
|
# Report-only
|
2021-08-29 14:33:09 +02:00
|
|
|
${depot.third_party.bufbuild}/bin/buf check breaking --input "." --against-input "./.git#branch=canon" || true
|
2020-07-17 06:27:05 +02:00
|
|
|
''
|