Skip to content

Commit ed2371e

Browse files
authored
tests: fix BrotoBuf test reports (#537)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 8c607eb commit ed2371e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/src/test/proto/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ BUF_IMAGE_VERSION='1.46.0'
1919
function schema-lint () {
2020
echo '> lint schema files' >&2
2121

22-
if [[ -n "${CI:-}" ]]
22+
if [[ -n "${GITHUB_WORKFLOW:-}" ]]
2323
then
2424
LOG_FORMAT='github-actions'
2525
else
@@ -60,10 +60,10 @@ function schema-breaking-version () {
6060
sed 's/^package .*//' "${ROOT_PATH}/${SCHEMA_DIR}/${OLD}" > "$OLD_NP"
6161

6262
echo ">> compare new:${NEW} -VS- old:${OLD}" >&2
63-
# stick with the original path of "$NEW", so the reporting makes sense...
63+
# stick with the original path and name of "$NEW", so the reporting makes sense...
6464
docker run --rm \
65-
--volume "${OLD_NP}:/workspaces/old/${NEW}:ro" \
66-
--volume "${NEW_NP}:/workspaces/new/${NEW}:ro" \
65+
--volume "${OLD_NP}:/workspaces/old/${SCHEMA_DIR}/${NEW}:ro" \
66+
--volume "${NEW_NP}:/workspaces/new/${SCHEMA_DIR}/${NEW}:ro" \
6767
--volume "${THIS_PATH}/buf_breaking-version.yaml:/workspaces/new/buf.yaml:ro" \
6868
--workdir '/workspaces/new' \
6969
bufbuild/buf:"$BUF_IMAGE_VERSION" \

0 commit comments

Comments
 (0)