Bläddra i källkod

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 timmar sedan
förälder
incheckning
476a87b9dd
1 ändrade filer med 1 tillägg och 1 borttagningar
  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