CI-workflow en overstap naar PostgreSQL #7

Merged
hielke merged 2 commits from ci into main 2026-11-07 11:59:27 +00:00
Owner

Samenvatting

  • Forgejo CI-workflow toegevoegd: tests (tegen PostgreSQL 18), Pint, TypeScript type-check, composer audit en npm audit
  • Database omgezet van MariaDB 11.8 naar PostgreSQL 18 in DDEV
  • DDEV post-start hook maakt een aparte testing-database aan
  • Tests draaien tegen PostgreSQL (testing) in plaats van in-memory SQLite
  • Standaardverbinding in config/database.php, config/queue.php en .env.example is nu pgsql; SQLite-stap uit composer.json verwijderd

Testen

  • ddev artisan test --compact: 73 tests geslaagd (270 assertions) tegen PostgreSQL
  • Pint geslaagd

Let op

Bestaande DDEV-omgevingen moeten één keer ddev start --reset-database draaien (maakt eerst een snapshot) en daarna ddev artisan migrate.

🤖 Generated with Claude Code

## Samenvatting - Forgejo CI-workflow toegevoegd: tests (tegen PostgreSQL 18), Pint, TypeScript type-check, `composer audit` en `npm audit` - Database omgezet van MariaDB 11.8 naar PostgreSQL 18 in DDEV - DDEV `post-start` hook maakt een aparte `testing`-database aan - Tests draaien tegen PostgreSQL (`testing`) in plaats van in-memory SQLite - Standaardverbinding in `config/database.php`, `config/queue.php` en `.env.example` is nu `pgsql`; SQLite-stap uit `composer.json` verwijderd ## Testen - `ddev artisan test --compact`: 73 tests geslaagd (270 assertions) tegen PostgreSQL - Pint geslaagd ## Let op Bestaande DDEV-omgevingen moeten één keer `ddev start --reset-database` draaien (maakt eerst een snapshot) en daarna `ddev artisan migrate`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Add CI workflow and switch database to PostgreSQL
Some checks failed
CI / Pint (pull_request) Successful in 59s
CI / Tests (pull_request) Successful in 1m30s
CI / Composer audit (pull_request) Successful in 40s
CI / TypeScript (pull_request) Failing after 18s
CI / npm audit (pull_request) Successful in 9s
c9d05e1aee
- Add Forgejo CI workflow with tests, Pint, TypeScript checks and audits
- Switch DDEV database from MariaDB 11.8 to PostgreSQL 18
- Create a separate 'testing' database on DDEV start
- Run tests against PostgreSQL instead of in-memory SQLite
- Default to pgsql in config and .env.example, drop SQLite setup script

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix TypeScript check in CI
All checks were successful
CI / Pint (pull_request) Successful in 48s
CI / Tests (pull_request) Successful in 1m16s
CI / Composer audit (pull_request) Successful in 40s
CI / npm audit (pull_request) Successful in 11s
CI / TypeScript (pull_request) Successful in 57s
06ce9833f1
- Use the existing types:check npm script
- Generate Wayfinder actions and routes before running tsc

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hielke merged commit 0d44751e63 into main 2026-11-07 11:59:27 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hielke/zonnepanelen-dashboard!7
No description provided.