8
8
9
9
jobs :
10
10
build :
11
-
11
+ runs-on : ubuntu-latest
12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- # os: [ubuntu-latest, macos-latest, windows-latest]
16
- os : [ubuntu-latest]
17
15
php : ['7.1', '7.2', '7.3', '7.4', '8.0']
18
16
# max 4.4.16, see https://github.com/symfony/symfony/issues/39521
19
17
# max 5.1.8, see https://github.com/symfony/symfony/issues/39521
24
22
yaml : ' 5.1.11'
25
23
- php : ' 7.1'
26
24
yaml : ' 5.2.9'
27
- include :
28
- - php : ' 7.4'
29
- os : windows-latest
30
- yaml : ' 5.2.9'
31
- - php : ' 7.4'
32
- os : macos-latest
33
- yaml : ' 5.2.9'
34
25
35
-
36
- runs-on : ${{ matrix.os }}
37
26
env :
38
27
YAML : ${{ matrix.yaml }}
39
28
@@ -44,60 +33,27 @@ jobs:
44
33
uses : shivammathur/setup-php@v2
45
34
with :
46
35
php-version : ${{ matrix.php }}
47
- ini-values : date.timezone='UTC'
48
36
coverage : pcov
49
37
tools : composer:v2
50
38
51
- - name : Determine composer cache directory (Linux/MacOS)
52
- if : matrix.os != 'windows-latest'
53
- run : echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
54
-
55
- - name : Determine composer cache directory (Windows)
56
- if : matrix.os == 'windows-latest'
57
- run : echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
58
-
59
- - name : Cache dependencies installed with composer
60
- uses : actions/cache@v2
61
- with :
62
- path : ${{ env.COMPOSER_CACHE_DIR }}
63
- key : php${{ matrix.php }}-os${{ matrix.os }}-yaml${{ matrix.yaml }}-composer-${{ hashFiles('**/composer.json') }}
64
-
65
-
66
- - name : Validate composer.json and composer.lock
67
- run : composer validate --ansi
39
+ - name : " Install dependencies with Composer"
40
+ uses : " ramsey/composer-install@v1"
68
41
69
- - name : Install dependencies (Linux/MacOS)
70
- if : matrix.os != 'windows-latest'
42
+ - name : Install specific symfony/yaml version
71
43
run : |
72
- make install
73
44
composer require symfony/yaml:"${YAML}" --prefer-dist --no-interaction --ansi
74
45
75
- - name : Install dependencies (Windows)
76
- if : matrix.os == 'windows-latest'
77
- run : |
78
- composer install --prefer-dist --no-interaction --no-progress --ansi
79
- composer require symfony/yaml:5.1.8 --prefer-dist --no-interaction --ansi
80
-
81
46
- name : Validate test data
82
- if : matrix.os == 'ubuntu-latest'
83
47
run : make lint
84
48
85
49
- name : PHP Stan analysis
86
- if : matrix.os == 'ubuntu-latest'
87
50
run : make stan
88
51
89
- - name : PHPUnit tests (Linux/MacOS)
90
- if : matrix.os != 'windows-latest'
52
+ - name : PHPUnit tests
91
53
run : make test
92
54
93
- - name : PHPUnit tests (Windows)
94
- if : matrix.os == 'windows-latest'
95
- run : vendor/bin/phpunit --colors=always
96
-
97
55
- name : Check code style
98
- if : matrix.os == 'ubuntu-latest'
99
56
run : make check-style
100
57
101
58
- name : Code coverage
102
- if : matrix.os == 'ubuntu-latest'
103
59
run : make coverage
0 commit comments