diff --git a/.github/tests/test_and_check_app/action.yml b/.github/tests/test_and_check_app/action.yml index 32a478f..9892b00 100644 --- a/.github/tests/test_and_check_app/action.yml +++ b/.github/tests/test_and_check_app/action.yml @@ -63,10 +63,16 @@ runs: run: php artisan wayfinder:generate --with-form shell: bash - - name: Build Vite app - run: pnpm run build + - name: Run independent application checks + 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 - - name: Run ci check - run: composer run ci:check + - name: Run Laravel tests + run: composer run ci:test shell: bash diff --git a/composer.json b/composer.json index 48535b3..3431833 100644 --- a/composer.json +++ b/composer.json @@ -68,10 +68,22 @@ ], "ci:check": [ "Composer\\Config::disableProcessTimeout", + "@ci:frontend", + "@ci:backend", + "@ci:test" + ], + "ci:frontend": [ "pnpm audit --audit-level=high", "pnpm run lint: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": [ "@php artisan config:clear --ansi",