CI: debug

This commit is contained in:
Max 2021-10-07 19:09:18 +08:00
parent e1aa1f25d2
commit 2eedea24a8
2 changed files with 4 additions and 1 deletions

View file

@ -50,7 +50,7 @@ startPostgres() {
startSQLite3() {
echo "Start SQLite3"
echo "DB_HOST=file:$INPUT_DB.db" >> $GITHUB_ENV
echo "DB_HOST=file:$XIANG_ROOT/db/$INPUT_DB.db" >> $GITHUB_ENV
echo "DB_DRIVER=sqlite3" >> $GITHUB_ENV
echo "DB_NAME=sqlite3" >> $GITHUB_ENV
echo "$DB_HOST"

View file

@ -1,6 +1,7 @@
package global
import (
"fmt"
"testing"
"github.com/gin-gonic/gin"
@ -24,6 +25,8 @@ func TestProcessSearch(t *testing.T) {
// Debug
utils.Dump(config.Conf)
fmt.Println("Models Count:", len(gou.Models))
fmt.Println("Tables Count:", len(table.Tables))
sch := capsule.Schema()
utils.Dump(sch.MustGetTables())