diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70cc0059a3..12ce876f13 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,5 +18,6 @@ jobs: run: | cp panel-example.conf .env go run . artisan key:generate + go run . artisan migrate - name: Run tests run: go test ./... diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9da230c822..7872f4641e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,6 +45,7 @@ unit_test: - apt-get install -y curl jq - cp panel-example.conf .env - go run . artisan key:generate + - go run . artisan migrate - go test -v -coverprofile=coverage.txt -covermode=atomic ./... build: diff --git a/go.mod b/go.mod index a9d269238a..6319a5ba12 100644 --- a/go.mod +++ b/go.mod @@ -211,7 +211,7 @@ require ( gorm.io/driver/mysql v1.5.2 // indirect gorm.io/driver/postgres v1.5.2 // indirect gorm.io/driver/sqlserver v1.5.2 // indirect - gorm.io/gorm v1.25.4 // indirect + gorm.io/gorm v1.25.5 // indirect gorm.io/plugin/dbresolver v1.4.7 // indirect modernc.org/libc v1.22.5 // indirect modernc.org/mathutil v1.5.0 // indirect