Skip to content

Commit 4ed6e93

Browse files
committed
Integrated httpbin testing back into the build action, using httpbin as service
1 parent f950a64 commit 4ed6e93

File tree

2 files changed

+9
-49
lines changed

2 files changed

+9
-49
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ jobs:
7373

7474
test:
7575
runs-on: ubuntu-latest
76+
services:
77+
httpbin:
78+
image: kennethreitz/httpbin
79+
ports:
80+
- 8080:80
81+
credentials:
82+
username: ${{ secrets.dockerhub_username }}
83+
password: ${{ secrets.dockerhub_password }}
7684
strategy:
7785
matrix:
7886
# PHP Unit 4.x is needed for PHP 5.4 but is not supported on PHP 8.x
@@ -98,7 +106,7 @@ jobs:
98106
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
99107
- name: PHP Unit
100108
run: |
101-
echo '{}' | jq '.http.upload.skip |= true' > tests/config.json
109+
echo '{}' | jq '.http.upload.skip |= false | .http.upload.httpBinUrl |= "http://localhost:8080"' > tests/config.json
102110
vendor/bin/phpunit tests
103111
104112
test-php8:

.github/workflows/http-upload-test.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)