diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12ce876f..c81f8441 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,7 @@ jobs: - name: Set up environment run: | cp panel-example.conf .env + echo "DB_FILE=database/panel.db" >> .env go run . artisan key:generate go run . artisan migrate - name: Run tests diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7872f464..4088aed8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,6 +44,7 @@ unit_test: - apt-get update - apt-get install -y curl jq - cp panel-example.conf .env + - echo "DB_FILE=database/panel.db" >> .env - go run . artisan key:generate - go run . artisan migrate - go test -v -coverprofile=coverage.txt -covermode=atomic ./...