mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Enhancement: Run end-to-end test asserting HTTP response status code (#900)
This commit is contained in:
10
.github/workflows/integrate.yaml
vendored
10
.github/workflows/integrate.yaml
vendored
@@ -27,7 +27,7 @@ jobs:
|
||||
uses: "shivammathur/setup-php@v2"
|
||||
with:
|
||||
coverage: "none"
|
||||
extensions: "none, json, mbstring, tokenizer"
|
||||
extensions: "none, curl, json, mbstring, tokenizer"
|
||||
php-version: "${{ matrix.php-version }}"
|
||||
|
||||
- name: "Set up problem matchers for PHP"
|
||||
@@ -64,6 +64,9 @@ jobs:
|
||||
php-version:
|
||||
- "8.2"
|
||||
|
||||
env:
|
||||
HTTP_HOST: "localhost:8080"
|
||||
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: "actions/checkout@v4"
|
||||
@@ -72,11 +75,14 @@ jobs:
|
||||
uses: "shivammathur/setup-php@v2"
|
||||
with:
|
||||
coverage: "none"
|
||||
extensions: "none"
|
||||
extensions: "none, curl"
|
||||
php-version: "${{ matrix.php-version }}"
|
||||
|
||||
- name: "Set up problem matchers for PHP"
|
||||
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
|
||||
|
||||
- name: "Start built-in web server for PHP"
|
||||
run: "php -S ${{ env.HTTP_HOST }} .router.php &"
|
||||
|
||||
- name: "Run tests"
|
||||
run: "php tests/run-tests.php -j3 -q --show-diff"
|
||||
|
||||
Reference in New Issue
Block a user