@@ -4,14 +4,13 @@ on: [push, pull_request]
4
4
jobs :
5
5
build :
6
6
strategy :
7
+ fail-fast : false
7
8
matrix :
8
- os : [ubuntu-latest, windows-latest, macos-latest]
9
- php : ['7.2', '7.3', '7.4']
10
- coverage : ["true"]
9
+ operating-system : [ubuntu-latest, windows-latest, macos-latest]
10
+ php-versions : ['7.3', '7.4', '8.0']
11
11
composer-flags : [""]
12
12
include :
13
- - php : " 8.0"
14
- coverage : " false"
13
+ - php-versions : " 8.1"
15
14
composer-flags : " --ignore-platform-req=php"
16
15
runs-on : ubuntu-latest
17
16
22
21
- name : Setup PHP, with composer and extensions
23
22
uses : shivammathur/setup-php@v2
24
23
with :
25
- php-version : ${{ matrix.php }}
26
- extensions : mbstring, curl
24
+ php-version : ${{ matrix.php-versions }}
25
+ extensions : mbstring, curl, redis, apcu, memcached, memcache
27
26
coverage : xdebug
28
27
tools : composer:v2
29
28
@@ -41,26 +40,18 @@ jobs:
41
40
restore-keys : ${{ runner.os }}-composer-
42
41
43
42
- name : Install dependencies
44
- run : composer update --no-progress --optimize-autoloader ${{ matrix.composer-flags }}
43
+ run : composer install --no-progress --optimize-autoloader ${{ matrix.composer-flags }}
45
44
46
45
- name : Check Coding Standard
47
- run : |
48
- if [ "${{ matrix.coverage }}" == "true" ]; then
49
- vendor/bin/phpcs
50
- fi
46
+ run : vendor/bin/phpcs
51
47
52
48
- name : Test with Phpunit
53
49
run : |
54
- if [ "${{ !matrix.coverage }}" == "false" ]; then
55
- vendor/bin/phpunit --no-coverage
56
- fi
57
- if [ "${{ matrix.coverage }}" == "true" ]; then
58
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
59
- bash <(curl -s https://codecov.io/bash) -f coverage.clover
60
- fi
50
+ vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
51
+ bash <(curl -s https://codecov.io/bash) -f coverage.clover
61
52
62
53
- name : Test with Phpstan
63
54
run : vendor/bin/phpstan analyse
64
55
65
56
- name : Test with Psalm
66
- run : vendor/bin/psalm
57
+ run : vendor/bin/psalm --output-format=github
0 commit comments