test concurrently

This commit is contained in:
2026-09-26 18:40:46 +00:00
parent ce250d8be5
commit de0c19a86b
2 changed files with 23 additions and 5 deletions
+10 -4
View File
@@ -63,10 +63,16 @@ runs:
run: php artisan wayfinder:generate --with-form run: php artisan wayfinder:generate --with-form
shell: bash shell: bash
- name: Build Vite app - name: Run independent application checks
run: pnpm run build run: |
pnpm exec concurrently \
--names frontend,backend \
--prefix-colors cyan,magenta \
--kill-others-on-fail \
"composer run ci:frontend" \
"composer run ci:backend"
shell: bash shell: bash
- name: Run ci check - name: Run Laravel tests
run: composer run ci:check run: composer run ci:test
shell: bash shell: bash
+13 -1
View File
@@ -68,10 +68,22 @@
], ],
"ci:check": [ "ci:check": [
"Composer\\Config::disableProcessTimeout", "Composer\\Config::disableProcessTimeout",
"@ci:frontend",
"@ci:backend",
"@ci:test"
],
"ci:frontend": [
"pnpm audit --audit-level=high", "pnpm audit --audit-level=high",
"pnpm run lint:check", "pnpm run lint:check",
"pnpm run types:check", "pnpm run types:check",
"@test" "pnpm run build"
],
"ci:backend": [
"@lint:check"
],
"ci:test": [
"@php artisan config:clear --ansi",
"@php artisan test --parallel --processes=2"
], ],
"test": [ "test": [
"@php artisan config:clear --ansi", "@php artisan config:clear --ansi",