-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (43 loc) · 1.95 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
49
50
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 php-http/message-factory" }
- { suite: "Socket", php: '7.4', package: "php-http/socket-client php-http/client-common php-http/message-factory" }
- { suite: "Guzzle5", php: '7.1', package: "php-http/guzzle5-adapter php-http/message-factory" }
- { suite: "Guzzle6", php: '7.4', package: "php-http/guzzle6-adapter php-http/message-factory" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle php-http/message-factory" }
- { suite: "Guzzle", php: '8.3', package: "guzzlehttp/guzzle php-http/message-factory" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle phpunit/phpunit:^8.5.8 php-http/message-factory" }
- { suite: "Guzzle", php: '7.4', package: "guzzlehttp/guzzle phpunit/phpunit:^7.5.20 php-http/message-factory" }
- { suite: "Buzz", php: '7.4', package: "kriswallsmith/buzz psr/log php-http/message-factory" }
- { suite: "Buzz", php: '8.3', package: "kriswallsmith/buzz psr/log php-http/message-factory" }
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 }}