From 7a9fd6bbba877766111b4f457e69771baff1b41f Mon Sep 17 00:00:00 2001 From: QuiteAFancyEmerald <46467239+QuiteAFancyEmerald@users.noreply.github.com> Date: Sun, 7 Jul 2024 23:09:11 -0700 Subject: [PATCH] t --- .github/workflows/ci.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",