瀏覽代碼

ci(compat): write the report at the repository root

go test runs each package with its own working directory, so the relative
report path landed in pkg/pgserver/ and the CI upload (root path) found
nothing. Use $(CURDIR) so make compat writes ./compat-report.json.
PizzaSQL Bot 12 小時之前
父節點
當前提交
476a87b9dd
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -44,7 +44,7 @@ test:
 compat:
 	PIZZASQL_COMPAT=1 \
 	PIZZASQL_COMPAT_STRICT=$${PIZZASQL_COMPAT_STRICT:-0} \
-	PIZZASQL_COMPAT_REPORT=$${PIZZASQL_COMPAT_REPORT:-compat-report.json} \
+	PIZZASQL_COMPAT_REPORT=$${PIZZASQL_COMPAT_REPORT:-$(CURDIR)/compat-report.json} \
 	go test ./pkg/pgserver -run TestCompatibilitySuite -v
 
 # Run tests with verbose output