From f574f0388f199454669504d641dc7398c4475466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Madunick=C3=BD?= Date: Sat, 13 Jun 2026 14:02:11 +0200 Subject: [PATCH] fix: Change start command to npm start:test in workflow to correspond with course material In the course material, we are instructed to add the npm script "start:test": "TESTING=true node index.js". However, test.yml currently runs the app via npm start (without the testing environment), but provides TEST_DATABASE_URL. This causes a configuration mismatch and a crash because the app looks for DATABASE_URL instead. Changing it to npm run start:test fixes the issue. --- fs-psql/.github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs-psql/.github/workflows/test.yml b/fs-psql/.github/workflows/test.yml index 2e420e7..a565218 100644 --- a/fs-psql/.github/workflows/test.yml +++ b/fs-psql/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: run: npm ci - name: Start application - run: npm start > app.log 2>&1 & + run: npm run start:test > app.log 2>&1 & env: TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db?sslmode=disable PORT: 3001