-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (41 loc) · 1.62 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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:dev-master laminas/laminas-diactoros" }
- { suite: "Socket", php: '7.4', package: "php-http/socket-client:dev-master php-http/client-common" }
- { suite: "Guzzle5", php: '7.1', package: "php-http/guzzle5-adapter:dev-master" }
- { suite: "Guzzle6", php: '7.4', package: "php-http/guzzle6-adapter:dev-master" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle:dev-master" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle:dev-master phpunit/phpunit:^8.5.8" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle:dev-master phpunit/phpunit:^7.5.20" }
- { suite: "Buzz", php: '7.4', package: "kriswallsmith/buzz:dev-master" }
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 }}