Skip to content

Commit

Permalink
Fix integration tests to actually run (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jun 8, 2022
1 parent 2d92607 commit a07b9fd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
composer-normalize:
name: Composer Normalize
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout code
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build-lowest-version:
name: Build lowest version
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Set up PHP
Expand All @@ -26,11 +26,11 @@ jobs:
run: composer update --no-interaction --prefer-stable --prefer-lowest --no-progress

- name: Run tests
run: make test
run: vendor/bin/phpunit --testsuite "Guzzle PSR-7 Unit Test Suite"

build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
max-parallel: 10
matrix:
Expand All @@ -47,12 +47,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Mimic PHP 8.0
run: composer config platform.php 8.0.999
if: matrix.php > 8

- name: Install dependencies
run: composer update --no-interaction --no-progress

- name: Run tests
run: make test
run: vendor/bin/phpunit --testsuite "Guzzle PSR-7 Unit Test Suite"
15 changes: 8 additions & 7 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

build:
name: Test
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
max-parallel: 10
matrix:
Expand All @@ -26,17 +26,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Mimic PHP 8.0
run: composer config platform.php 8.0.999
if: matrix.php > 8

- name: Install dependencies
run: composer update --no-interaction --no-progress

- name: Start server
run: php -S 127.0.0.1:10002 tests/Integration/server.php &

- name: Run tests
- name: Run Guzzle tests
env:
TEST_SERVER: 127.0.0.1:10002
run: vendor/bin/phpunit --testsuite "Guzzle PSR-7 Integration Test Suite"

- name: Run Interop tests
env:
TEST_SERVER: 127.0.0.1:10002
run: ./vendor/bin/phpunit --testsuite Integration
run: vendor/bin/phpunit --testsuite "PSR-17 Integration Test Suite"
6 changes: 3 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout code
Expand All @@ -34,7 +34,7 @@ jobs:

php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout code
Expand All @@ -59,7 +59,7 @@ jobs:

psalm:
name: Psalm
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<testsuite name="Guzzle PSR-7 Integration Test Suite">
<directory>tests/Integration</directory>
</testsuite>
<testsuite name="PSR-7 Integration Test Suite">
<testsuite name="PSR-17 Integration Test Suite">
<directory>./vendor/http-interop/http-factory-tests/test</directory>
</testsuite>
</testsuites>
Expand Down

0 comments on commit a07b9fd

Please sign in to comment.