Repository navigation
ci: run backend and frontend checks on push and pull requests - #15
Merged
Merged
Conversation
Backend: Pint plus the Pest suite against sqlite (in-memory) and MySQL 8 on PHP 8.4. Frontend: vue-tsc and vite build on Node 22. Previously the suite only ran on developer machines; deploy was not gated on green tests.
vue-tsc resolves the Ziggy route types from vendor/, so the frontend job needs composer dependencies as well. Also fix the style issues Pint reports on the full tree (previously only --dirty was checked).
CI runs the backend suite before (or without) building frontend assets; rendering any Blade layout then failed with a missing Vite manifest. Skip Vite for all tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was
Bisher lief die Test-Suite nur auf Entwicklermaschinen — der Deploy-Workflow war nicht durch grüne Tests abgesichert. Dieser PR ergänzt
.github/workflows/test.yml:Backend (Matrix sqlite + MySQL 8, PHP 8.4):
vendor/bin/pint --testphp artisan test— SQLite läuft In-Memory (verifiziert: 77 passed), MySQL gegen einen Service-Container mittesting-DatenbankFrontend (Node 22):
npm run build(=vue-tsc && vite build)Läuft bei Push auf
mainund bei allen Pull Requests. Der Deploy-Workflow kann den Job als Required Check konfigurieren.Verifikation
DB_CONNECTION=sqlite DB_DATABASE=:memory:) und MySQL grün gefahren