djalim
e2f5bf7b95
ci: remove Run tests step from lint workflow
Check Deno code / Check Deno code (push) Successful in 6s
Tests / Unit tests (push) Successful in 12s
Tests / Integration tests (push) Successful in 57s
Check Deno code / Check Deno code (pull_request) Successful in 6s
Tests / Unit tests (pull_request) Successful in 12s
Tests / Integration tests (pull_request) Successful in 1m3s
2026-04-26 14:30:40 +02:00
djalim
e5c6c389ea
test(students): add unit, integration and e2e tests for /students ( #109 )
...
Check Deno code / Check Deno code (pull_request) Failing after 5s
Tests / Unit tests (pull_request) Successful in 12s
Tests / Integration tests (pull_request) Successful in 58s
- unit: fixture shapes, mock API (GET/POST/PUT/DELETE), mock DB operations
- integration: real DB CRUD via testDb (list, filter, create, get, update, delete)
- e2e: handler calls directly with mock FreshContext + real DB
covers auth (employee vs non-employee), 400/403/404 cases
- adds test:e2e deno task and CI step
- adds tests/helpers/handler.ts with makeEmployeeContext, makeContextWithAffiliation,
makeGetRequest, makeJsonRequest utilities
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-26 14:00:38 +02:00
djalim
daa7f4951f
fix(ci): fix postgres TCP setup and truncateAll superuser error
...
Check Deno code / Check Deno code (push) Failing after 5s
Tests / Unit tests (push) Successful in 11s
Tests / Integration tests (push) Successful in 55s
- Use apt-get install + configure listen_addresses + md5 auth in pg_hba
so psql can connect via 127.0.0.1 (not just Unix socket)
- Use pg_ctlcluster restart after config changes + wait for pg_isready
- Replace session_replication_role (requires superuser) with a single
TRUNCATE ... CASCADE which handles FK deps without elevated privileges
- All 3 integration tests now pass in CI (act + Gitea Actions)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-26 11:30:33 +00:00
djalim
a95818e3bf
fix(ci): use connection URL with ssl:false in drizzle config
2026-04-26 11:30:33 +00:00
djalim
26eedcc4f2
debug(ci): add connection diagnostics before migrate
2026-04-26 11:30:33 +00:00
djalim
ce4782580d
fix(ci): remove unsupported --verbose from drizzle-kit migrate
2026-04-26 11:30:33 +00:00
djalim
91248370da
fix(ci): add GRANT on public schema and verbose migrate output
2026-04-26 11:30:33 +00:00
djalim
6b8b5e6aa3
fix(ci): start postgres with pg_ctlcluster instead of systemctl
2026-04-26 11:30:33 +00:00
djalim
d1c3b93755
fix(ci): install postgres via apt-get instead of docker
2026-04-26 11:30:33 +00:00
djalim
f42df29f06
fix(ci): use docker run instead of services for postgres
2026-04-26 11:30:33 +00:00
djalim
c8b808f509
fix(ci): use bash /dev/tcp for postgres readiness check
2026-04-26 11:30:33 +00:00
djalim
fdfdd74894
fix(ci): replace pg_isready with nc for postgres readiness check
2026-04-26 11:30:33 +00:00
djalim
60dde4675c
fix(ci): use deno install for unit tests, add postgres readiness check
2026-04-26 11:30:33 +00:00
djalim
fef9457795
fix(ci): install npm deps before running unit tests
2026-04-26 11:30:33 +00:00
djalim
6db04045f4
fix(lint): add version to drizzle-orm imports and prefix unused NOT_FOUND
2026-04-26 11:30:33 +00:00
djalim
980efcfbc3
ci: add Deno code check job and enable lint on develop
Check Deno code / Check Deno code (pull_request) Failing after 9s
Check Deno code / Check Deno code (push) Failing after 6s
2026-04-23 14:29:08 +02:00
djalim
612c41c099
ci: add test job to lint workflow and update deno.json
...
Add test script to deno.json
Add @std/assert, @std/testing, happy-dom dependencies
2026-04-21 10:14:25 +00:00
djalim
19a588ac25
🚀 ci: add Docker build and push workflow, remove old Deno check workflow
Check Deno code / Check Deno code (pull_request) Successful in 16s
2026-01-13 08:45:23 +01:00
djalim
ad524978df
🔧 (ci.yml): renamed Deno lint workflow for pull requests
2026-01-09 12:57:51 +01:00
djalim
c283a34784
🔧 ci: add Deno lint and format check workflow
Check Deno code / Check Deno code (pull_request) Successful in 5s
2026-01-09 12:47:36 +01:00