test concurrently
This commit is contained in:
@@ -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
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user