1
0
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:
Andreas Möller
2024-01-23 09:16:29 +01:00
committed by GitHub
parent d8fdb48b6b
commit d162fe4120
8 changed files with 260 additions and 6 deletions

View File

@@ -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"