From bcc026a4f4f31674f04419f4e58a334c7e758cdd Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 2 Sep 2024 12:32:50 +0200 Subject: [PATCH] GH Actions/test: test localhost on port 9003 ... and fail the steps if the request doesn't respond as expected. --- .github/workflows/quicktest.yml | 7 +++++-- .github/workflows/test.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index 5628daf45..6adca9684 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -85,10 +85,13 @@ jobs: run: curl -s -I https://requests-test-server.onrender.com/ > /dev/null - name: Access localhost on port 8080 - run: curl -i http://localhost:8080 + run: curl -i -f http://localhost:8080 - name: Access localhost on port 9002 - run: curl -i http://localhost:9002 + run: curl -i -f http://localhost:9002 + + - name: Access localhost on port 9003 + run: curl -i -f http://localhost:9003 -u test:pass - name: Grab PHPUnit version id: phpunit_version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dd3f454ff..7af731c46 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -109,10 +109,13 @@ jobs: run: curl -s -I https://requests-test-server.onrender.com/ > /dev/null - name: Access localhost on port 8080 - run: curl -i http://localhost:8080 + run: curl -i -f http://localhost:8080 - name: Access localhost on port 9002 - run: curl -i http://localhost:9002 + run: curl -i -f http://localhost:9002 + + - name: Access localhost on port 9003 + run: curl -i -f http://localhost:9003 -u test:pass - name: Grab PHPUnit version id: phpunit_version