@@ -3,11 +3,12 @@ on: [push, pull_request]
33
44jobs :
55 full-build :
6+ name : " Coding standards & coverage tests"
67 runs-on : ${{ matrix.operating-system }}
78 strategy :
89 matrix :
9- operating-system : [ubuntu-latest]
10- php-versions : [" 7.4" ]
10+ operating-system : [' ubuntu-latest' ]
11+ php-versions : [' 7.4' ]
1112 env :
1213 extensions : pcov, dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter
1314 key : cache-v1
@@ -36,15 +37,12 @@ jobs:
3637 ini-values : assert.exception=1, zend.assertions=1
3738 - name : " Validate composer.json"
3839 run : composer validate
39- - name : " Set composer cache directory"
40- id : composer-cache-full-build
41- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
4240 - name : " Setup composer cache"
4341 uses : actions/cache@v2
4442 with :
45- path : ${{ steps .composer- cache-full-build.outputs.dir }}
46- key : ${{ runner.os }}-composer-full- ${{ hashFiles('**/composer.json') }}
47- restore-keys : ${{ runner.os }}-composer-full-
43+ path : ~/ .composer/ cache
44+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
45+ restore-keys : ${{ runner.os }}-composer-
4846 - name : " Install highest dependencies"
4947 run : composer update --no-interaction --no-ansi --no-progress --no-suggest --prefer-stable
5048 - name : " Coding standard Php-CS-Fixer checks"
@@ -63,16 +61,19 @@ jobs:
6361 COVERALLS_RUN_LOCALLY : 1
6462 COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
6563
66- lowest-build :
64+ php-os-builds :
65+ name : " PHP 8 tests"
6766 runs-on : ${{ matrix.operating-system }}
6867 strategy :
6968 matrix :
70- operating-system : [ubuntu-latest]
71- php-versions : ["7.4" ]
69+ operating-system : [' ubuntu-latest', 'windows-latest', 'macos-latest' ]
70+ php-versions : ['8.0', '8.1' ]
7271 env :
7372 extensions : dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter
7473 key : cache-v1
7574 steps :
75+ - name : " Turn off git EOL conversion"
76+ run : git config --global core.autocrlf false
7677 - name : " Checkout"
7778 uses : actions/checkout@v2
7879 - name : " Setup PHP extensions cache environment"
@@ -95,16 +96,13 @@ jobs:
9596 coverage : none
9697 extensions : ${{ env.extensions }}
9798 ini-values : assert.exception=1, zend.assertions=1
98- - name : " Set composer cache directory"
99- id : composer-cache-lowest-build
100- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
10199 - name : " Setup composer cache"
102100 uses : actions/cache@v2
103101 with :
104- path : ${{ steps .composer- cache-lowest-build.outputs.dir }}
105- key : ${{ runner.os }}-composer-low -${{ hashFiles('**/composer.json') }}
106- restore-keys : ${{ runner.os }}-composer-low -
107- - name : " Install lowest dependencies"
108- run : composer update --no-interaction --no-ansi --no-progress --no-suggest --prefer-stable --prefer-lowest
102+ path : ~/ .composer/ cache
103+ key : ${{ runner.os }}-php${{ matrix.php-versions }}-composer -${{ hashFiles('**/composer.json') }}
104+ restore-keys : ${{ runner.os }}-php${{ matrix.php-versions }}-composer -
105+ - name : " Install highest dependencies"
106+ run : composer update --no-interaction --no-ansi --no-progress --no-suggest --prefer-stable
109107 - name : " Run PhpUnit tests (no coverage)"
110108 run : vendor/bin/phpunit --exclude-group integrated --no-coverage
0 commit comments