@@ -11,85 +11,85 @@ jobs:
1111 strategy :
1212 fail-fast : false
1313 matrix :
14- php-version : ['7.2', '7.4', ' 8.0']
14+ php-version : ['8.0']
1515 prefer-lowest : ['']
1616 include :
1717 - php-version : ' 7.2'
1818 prefer-lowest : ' prefer-lowest'
1919
2020 steps :
21- - uses : actions/checkout@v2
22- with :
23- fetch-depth : 1
24-
25- - name : Setup PHP
26- uses : shivammathur/setup-php@v2
27- with :
28- php-version : ${{ matrix.php-version }}
29- extensions : mbstring, intl
30- coverage : pcov
31-
32- - name : Get composer cache directory
33- id : composer-cache
34- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
35-
36- - name : Get date part for cache key
37- id : key-date
38- run : echo "::set-output name=date::$(date +'%Y-%m')"
39-
40- - name : Cache composer dependencies
41- uses : actions/cache@v2
42- with :
43- path : ${{ steps.composer-cache.outputs.dir }}
44- key : ${{ runner.os }}-composer-${{ steps.key-date.outputs.date }}-${{ hashFiles('composer.json') }}-${{ matrix.prefer-lowest }}
45-
46- - name : Composer install
47- run : |
48- if [[ ${{ matrix.php-version }} == '8.0' ]]; then
49- composer install --ignore-platform-reqs
50- elif ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
51- composer update --prefer-lowest --prefer-stable
52- else
53- composer install
54- fi
55-
56- - name : Run PHPUnit
57- run : |
58- if [[ ${{ matrix.php-version }} == '7.4' ]]; then
59- vendor/bin/phpunit --coverage-clover=coverage.xml
60- else
61- vendor/bin/phpunit
62- fi
63-
64- - name : Code Coverage Report
65- if : success() && matrix.php-version == '7.4'
66- uses : codecov/codecov-action@v1
21+ - uses : actions/checkout@v2
22+ with :
23+ fetch-depth : 1
24+
25+ - name : Setup PHP
26+ uses : shivammathur/setup-php@v2
27+ with :
28+ php-version : ${{ matrix.php-version }}
29+ extensions : mbstring, intl
30+ coverage : pcov
31+
32+ - name : Get composer cache directory
33+ id : composer-cache
34+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
35+
36+ - name : Get date part for cache key
37+ id : key-date
38+ run : echo "::set-output name=date::$(date +'%Y-%m')"
39+
40+ - name : Cache composer dependencies
41+ uses : actions/cache@v2
42+ with :
43+ path : ${{ steps.composer-cache.outputs.dir }}
44+ key : ${{ runner.os }}-composer-${{ steps.key-date.outputs.date }}-${{ hashFiles('composer.json') }}-${{ matrix.prefer-lowest }}
45+
46+ - name : Composer install
47+ run : |
48+ if [[ ${{ matrix.php-version }} == '8.0' ]]; then
49+ composer install --ignore-platform-reqs
50+ elif ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
51+ composer update --prefer-lowest --prefer-stable
52+ else
53+ composer install
54+ fi
55+
56+ - name : Run PHPUnit
57+ run : |
58+ if [[ ${{ matrix.php-version }} == '7.4' ]]; then
59+ vendor/bin/phpunit --coverage-clover=coverage.xml
60+ else
61+ vendor/bin/phpunit
62+ fi
63+
64+ - name : Code Coverage Report
65+ if : success() && matrix.php-version == '7.4'
66+ uses : codecov/codecov-action@v1
6767
6868 validation :
6969 name : Coding Standard & Static Analysis
7070 runs-on : ubuntu-18.04
7171
7272 steps :
73- - uses : actions/checkout@v2
74- with :
75- fetch-depth : 1
73+ - uses : actions/checkout@v2
74+ with :
75+ fetch-depth : 1
7676
77- - name : Setup PHP
78- uses : shivammathur/setup-php@v2
79- with :
80- php-version : ' 7.4'
81- extensions : mbstring, intl
82- coverage : none
83- tools : psalm:~4.1.0
77+ - name : Setup PHP
78+ uses : shivammathur/setup-php@v2
79+ with :
80+ php-version : ' 7.4'
81+ extensions : mbstring, intl
82+ coverage : none
83+ tools : psalm:~4.1.0
8484
85- - name : Composer Install
86- run : composer stan-setup
85+ - name : Composer Install
86+ run : composer stan-setup
8787
88- - name : Run phpstan
89- run : composer phpstan
88+ - name : Run phpstan
89+ run : composer phpstan
9090
91- - name : Run phpcs
92- run : composer cs-check
91+ - name : Run phpcs
92+ run : composer cs-check
9393
9494 # - name: Run psalm
95- # run: psalm --output-format=github
95+ # run: psalm --output-format=github
0 commit comments