diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9d628a39..cf2b5501 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -66,15 +66,26 @@ jobs: working-directory: app dependencies: ${{ matrix.dependencies }} + - name: ๐Ÿ› ๏ธ Prepare environment + run: | + make env + cp .env app/.env + env: + APP_NAME: laravel + SHARED_SERVICES_NAMESPACE: ss + PROJECT_SERVICES_NAMESPACE: wod + COMPOSE_PROJECT_NAME: laravel-starter-tpl + - name: ๐Ÿ”‘ Generate secret application key - working-directory: app - run: php artisan key:generate + run: make key - name: ๐Ÿ”— Create laravel storage symlinks - working-directory: app - run: php artisan storage:link + run: make storage - name: ๐Ÿงช Collect code coverage with Xdebug and pestphp/pest + env: + DB_CONNECTION: sqlite + DB_DATABASE: ':memory:' run: make test-cc - name: ๐Ÿ“ค Upload code coverage report to Codecov diff --git a/Makefile b/Makefile index 32f4ba3c..f99d01af 100644 --- a/Makefile +++ b/Makefile @@ -138,6 +138,10 @@ key: ## Runs artisan command to create app encryption key $(APP_RUNNER) php artisan key:generate .PHONY: key +storage: ## Runs artisan command to create symbolic link from public/storage to storage/app/public + $(APP_RUNNER) php artisan storage:link +.PHONY: storage + prepare: mkdir -p app/.build/php-cs-fixer .PHONY: prepare