-
Notifications
You must be signed in to change notification settings - Fork 78
96 lines (81 loc) · 2.93 KB
/
test-package.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: test
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
guzzle-version: ['^5.3', '^6.0']
include:
- php-version: '7.2'
guzzle-version: '^7.0'
- php-version: '7.3'
guzzle-version: '^7.0'
- php-version: '7.4'
guzzle-version: '^7.0'
- php-version: '8.0'
guzzle-version: '^7.0'
- php-version: '8.1'
guzzle-version: '^7.0'
- php-version: '8.2'
guzzle-version: '^7.0'
- php-version: '8.3'
guzzle-version: '^7.0'
- php-version: '8.4'
guzzle-version: '^7.9'
steps:
- uses: actions/checkout@v2
- name: install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
extensions: intl, mbstring
# by default setup-php uses a production php.ini so force development values
ini-values: >-
zend.exception_ignore_args=Off,
zend.exception_string_param_max_len=15,
error_reporting=-1,
display_errors=On,
display_startup_errors=On,
zend.assertions=1
- run: composer validate
- name: require guzzle
run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update ${{ matrix.composer-flags }}
- name: install dependencies
run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }}
- run: composer run-script test
phpstan:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# TODO: we likely have to care about Guzzle's version too - ideally we'd
# check our use of Guzzle is correct on each version
php-version: ['7.1', '8.2']
phpstan-version: ['~1.4']
steps:
- uses: actions/checkout@v2
- name: install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
extensions: intl, mbstring
# by default setup-php uses a production php.ini so force development values
ini-values: >-
zend.exception_ignore_args=Off,
zend.exception_string_param_max_len=15,
error_reporting=-1,
display_errors=On,
display_startup_errors=On,
zend.assertions=1
# - name: require guzzle
# run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update ${{ matrix.composer-flags }}
- name: require phpstan
run: composer require "phpstan/phpstan:${{ matrix.phpstan-version }}" --no-update ${{ matrix.composer-flags }}
- name: install dependencies
run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }}
- run: ./vendor/bin/phpstan