Skip to content

do not specify branch name for clients to test #21

do not specify branch name for clients to test

do not specify branch name for clients to test #21

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
continue-on-error: true
strategy:
max-parallel: 10
matrix:
batch:
- { suite: "curl", php: '7.4', package: "php-http/curl-client laminas/laminas-diactoros" }
- { suite: "Socket", php: '7.4', package: "php-http/socket-client php-http/client-common" }
- { suite: "Guzzle5", php: '7.1', package: "php-http/guzzle5-adapter" }
- { suite: "Guzzle6", php: '7.4', package: "php-http/guzzle6-adapter" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle phpunit/phpunit:^8.5.8" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle phpunit/phpunit:^7.5.20" }
- { suite: "Buzz", php: '7.4', package: "kriswallsmith/buzz psr/log" }
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.batch.php }}
coverage: none
tools: composer:v2
- name: Checkout code
uses: actions/checkout@v4
- name: Download dependencies
run: |
composer require ${{ matrix.batch.package }} --no-update
composer update --prefer-source --no-interaction
- name: Start test server
shell: bash
run: bin/http_test_server > /dev/null 2>&1 &
- name: Run tests
run: ./vendor/bin/phpunit --testsuite ${{ matrix.batch.suite }}