Skip to content

ci: test the Laravel backend and build the Next.js frontend - #1

Merged
iruzen-dono merged 1 commit into
mainfrom
ci/build
Nov 12, 2026
Merged

iruzen-dono merged 1 commit into
mainfrom
ci/build

Conversation

@iruzen-dono

Copy link
Copy Markdown
Owner

No CI existed. The backend has 40 tests written and never run automatically.

backend — Laravel

PHP 8.3 + composer install
php artisan key:generate
php artisan test   (against a PostgreSQL 16 service)

phpunit.xml points at pgsql / workless_test, not SQLite, and the Feature tests use RefreshDatabase — so the job spins up a real postgres:16 service with a health check.

frontend — Next.js

Node 22 + npm ci + npm run build

No frontend lint yet

npm run lint currently reports 23 errors and 26 warnings, almost all @typescript-eslint/no-explicit-any. Wiring that in today would make the CI red on its first run, and a permanently red CI gets ignored. Cleaning up the `any``s is its own pull request.

Verified locally

php artisan test --testsuite=Unit
→ 16 passed, 34 assertions

npm ci && npm run build   (frontend)
→ all routes compiled

The 24 Feature tests fail locally only for lack of a database (connection refused 127.0.0.1:5432); they are exactly what the Postgres service in this workflow provides.

No CI existed. The backend has 40 tests written and they were never run
automatically.

backend: PHP 8.3, composer install, then 'php artisan test' against a real
PostgreSQL service — phpunit.xml points at pgsql/workless_test, not SQLite,
so the Feature tests (which use RefreshDatabase) need a live database.

frontend: Node 22, npm ci, npm run build.

No lint step for the frontend yet: 'npm run lint' currently reports 23 errors
and 26 warnings, almost all explicit 'any'. Fixing those is its own change;
a permanently red CI would just be ignored.

Verified locally: php artisan test --testsuite=Unit -> 16 tests, 34 assertions,
all passing. The 24 Feature tests need the Postgres service this workflow adds.
Copilot AI balanced review requested due to automatic review settings November 12, 2026 01:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@iruzen-dono
iruzen-dono merged commit 481fb62 into main Nov 12, 2026
2 checks passed
@iruzen-dono
iruzen-dono deleted the ci/build branch November 12, 2026 02:01
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.

2 participants