Skip to content

Commit

Permalink
GH Actions/test: test localhost on port 9003
Browse files Browse the repository at this point in the history
... and fail the steps if the request doesn't respond as expected.
  • Loading branch information
jrfnl committed Oct 29, 2024
1 parent e8e9939 commit bcc026a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcc026a

Please sign in to comment.