88
99jobs :
1010 build :
11-
11+ runs-on : ubuntu-latest
1212 strategy :
1313 fail-fast : false
1414 matrix :
15- # os: [ubuntu-latest, macos-latest, windows-latest]
16- os : [ubuntu-latest]
1715 php : ['7.1', '7.2', '7.3', '7.4', '8.0']
1816 # max 4.4.16, see https://github.com/symfony/symfony/issues/39521
1917 # max 5.1.8, see https://github.com/symfony/symfony/issues/39521
2422 yaml : ' 5.1.11'
2523 - php : ' 7.1'
2624 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'
3425
35-
36- runs-on : ${{ matrix.os }}
3726 env :
3827 YAML : ${{ matrix.yaml }}
3928
@@ -44,60 +33,27 @@ jobs:
4433 uses : shivammathur/setup-php@v2
4534 with :
4635 php-version : ${{ matrix.php }}
47- ini-values : date.timezone='UTC'
4836 coverage : pcov
4937 tools : composer:v2
5038
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"
6841
69- - name : Install dependencies (Linux/MacOS)
70- if : matrix.os != 'windows-latest'
42+ - name : Install specific symfony/yaml version
7143 run : |
72- make install
7344 composer require symfony/yaml:"${YAML}" --prefer-dist --no-interaction --ansi
7445
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-
8146 - name : Validate test data
82- if : matrix.os == 'ubuntu-latest'
8347 run : make lint
8448
8549 - name : PHP Stan analysis
86- if : matrix.os == 'ubuntu-latest'
8750 run : make stan
8851
89- - name : PHPUnit tests (Linux/MacOS)
90- if : matrix.os != 'windows-latest'
52+ - name : PHPUnit tests
9153 run : make test
9254
93- - name : PHPUnit tests (Windows)
94- if : matrix.os == 'windows-latest'
95- run : vendor/bin/phpunit --colors=always
96-
9755 - name : Check code style
98- if : matrix.os == 'ubuntu-latest'
9956 run : make check-style
10057
10158 - name : Code coverage
102- if : matrix.os == 'ubuntu-latest'
10359 run : make coverage
0 commit comments