Skip to content

Commit

Permalink
Merge branch 'feat/laravel-11' of github-lotyp:wayofdev/laravel-start…
Browse files Browse the repository at this point in the history
…er-tpl into feat/laravel-11

* 'feat/laravel-11' of github-lotyp:wayofdev/laravel-starter-tpl:
  feat: add code-coverage workflow
  • Loading branch information
lotyp committed May 29, 2024
2 parents f1835b5 + f361ea8 commit 8f875d1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f875d1

Please sign in to comment.