Skip to content

ci: run backend and frontend checks on push and pull requests - #15

Merged
Rasalas merged 5 commits into
mainfrom
ci/test-workflow
Aug 22, 2026
Merged

Rasalas merged 5 commits into
mainfrom
ci/test-workflow

Conversation

@Rasalas

@Rasalas Rasalas commented Aug 22, 2026

Copy link
Copy Markdown
Member

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 --test
  • php artisan test — SQLite läuft In-Memory (verifiziert: 77 passed), MySQL gegen einen Service-Container mit testing-Datenbank

Frontend (Node 22):

  • npm run build (= vue-tsc && vite build)

Läuft bei Push auf main und bei allen Pull Requests. Der Deploy-Workflow kann den Job als Required Check konfigurieren.

Verifikation

  • Suite lokal gegen SQLite (DB_CONNECTION=sqlite DB_DATABASE=:memory:) und MySQL grün gefahren

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.
@Rasalas
Rasalas merged commit 5f8db97 into main Aug 22, 2026
3 checks passed
@Rasalas
Rasalas deleted the ci/test-workflow branch August 22, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant