Skip to content

Commit 8f875d1

Browse files
committed
Merge branch 'feat/laravel-11' of github-lotyp:wayofdev/laravel-starter-tpl into feat/laravel-11
* 'feat/laravel-11' of github-lotyp:wayofdev/laravel-starter-tpl: feat: add code-coverage workflow
2 parents f1835b5 + f361ea8 commit 8f875d1

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/testing.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,26 @@ jobs:
6666
working-directory: app
6767
dependencies: ${{ matrix.dependencies }}
6868

69+
- name: 🛠️ Prepare environment
70+
run: |
71+
make env
72+
cp .env app/.env
73+
env:
74+
APP_NAME: laravel
75+
SHARED_SERVICES_NAMESPACE: ss
76+
PROJECT_SERVICES_NAMESPACE: wod
77+
COMPOSE_PROJECT_NAME: laravel-starter-tpl
78+
6979
- name: 🔑 Generate secret application key
70-
working-directory: app
71-
run: php artisan key:generate
80+
run: make key
7281

7382
- name: 🔗 Create laravel storage symlinks
74-
working-directory: app
75-
run: php artisan storage:link
83+
run: make storage
7684

7785
- name: 🧪 Collect code coverage with Xdebug and pestphp/pest
86+
env:
87+
DB_CONNECTION: sqlite
88+
DB_DATABASE: ':memory:'
7889
run: make test-cc
7990

8091
- name: 📤 Upload code coverage report to Codecov

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ key: ## Runs artisan command to create app encryption key
138138
$(APP_RUNNER) php artisan key:generate
139139
.PHONY: key
140140

141+
storage: ## Runs artisan command to create symbolic link from public/storage to storage/app/public
142+
$(APP_RUNNER) php artisan storage:link
143+
.PHONY: storage
144+
141145
prepare:
142146
mkdir -p app/.build/php-cs-fixer
143147
.PHONY: prepare

0 commit comments

Comments
 (0)