diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25270d5f..19641e58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: npm install - - name: Start server if not already running + - name: Start server run: npm run start-test-server - name: Test server response diff --git a/package.json b/package.json index 5dcc7792..c7e82e16 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "npm run start", "test": "npm run test-400", "start-test-server": "node backend.js &", - "test-400": "curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/ | grep 400" + "test-400": "curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/ | ( grep -q 400 || exit 1 )" }, "keywords": [ "proxy",