File tree Expand file tree Collapse file tree 4 files changed +29
-24
lines changed Expand file tree Collapse file tree 4 files changed +29
-24
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
name : Create a release
11
- runs-on : ubuntu-20.04
11
+ runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Checkout code
14
14
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 21
21
jobs :
22
22
coding-standards :
23
23
name : Coding Standards with PHP CS Fixer [PHP ${{ matrix.php-version }}]
24
- runs-on : ubuntu-20.04
24
+ runs-on : ubuntu-latest
25
25
26
26
strategy :
27
27
fail-fast : false
30
30
- ' 7.4'
31
31
- ' 8.0'
32
32
- ' 8.1'
33
+ - ' 8.2'
34
+ - ' 8.3'
33
35
34
36
steps :
35
37
- name : Checkout repository
@@ -43,16 +45,16 @@ jobs:
43
45
coverage : none
44
46
45
47
- name : Get composer cache directory
46
- run : echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
48
+ id : composer-cache
49
+ run : echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
47
50
48
51
- name : Cache composer dependencies
49
52
uses : actions/cache@v3
50
53
with :
51
- path : ${{ env .COMPOSER_CACHE_FILES_DIR }}
52
- key : composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
54
+ path : ${{ steps.composer-cache.outputs .COMPOSER_CACHE_FILES_DIR }}
55
+ key : composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
53
56
restore-keys : |
54
- composer-${{ runner.os }}-${{ matrix.php-version }}-
55
- composer-${{ runner.os }}-
57
+ composer-${{ matrix.php-version }}-
56
58
composer-
57
59
58
60
- name : Setup Composer's GitHub OAuth access
62
64
run : composer update --ansi
63
65
64
66
- name : Run PHP CS Fixer
65
- run : vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --using-cache=no --diff
67
+ run : vendor/bin/php-cs-fixer check --verbose --ansi --diff
Original file line number Diff line number Diff line change 21
21
jobs :
22
22
static-analyses :
23
23
name : PHPStan Static Analysis [PHP ${{ matrix.php-version }}]
24
- runs-on : ubuntu-20.04
24
+ runs-on : ubuntu-latest
25
25
26
26
strategy :
27
27
fail-fast : false
30
30
- ' 7.4'
31
31
- ' 8.0'
32
32
- ' 8.1'
33
+ - ' 8.2'
34
+ - ' 8.3'
33
35
34
36
steps :
35
37
- name : Checkout repository
@@ -43,16 +45,16 @@ jobs:
43
45
coverage : none
44
46
45
47
- name : Get composer cache directory
46
- run : echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
48
+ id : composer-cache
49
+ run : echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
47
50
48
51
- name : Cache composer dependencies
49
52
uses : actions/cache@v3
50
53
with :
51
- path : ${{ env .COMPOSER_CACHE_FILES_DIR }}
52
- key : composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
54
+ path : ${{ steps.composer-cache.outputs .COMPOSER_CACHE_FILES_DIR }}
55
+ key : composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
53
56
restore-keys : |
54
- composer-${{ runner.os }}-${{ matrix.php-version }}-
55
- composer-${{ runner.os }}-
57
+ composer-${{ matrix.php-version }}-
56
58
composer-
57
59
58
60
- name : Create PHPStan cache directory
62
64
uses : actions/cache@v3
63
65
with :
64
66
path : build/phpstan
65
- key : phpstan-${{ runner.os }}-${{ github.sha }}
67
+ key : phpstan-${{ github.sha }}
66
68
restore-keys : |
67
- phpstan-${{ runner.os }}-
68
69
phpstan-
69
70
70
71
- name : Setup Composer's GitHub OAuth access
74
75
run : composer update --ansi
75
76
76
77
- name : Run PHPStan
77
- run : vendor/bin/phpstan analyse --ansi
78
+ run : vendor/bin/phpstan analyse --ansi --verbose
Original file line number Diff line number Diff line change 21
21
jobs :
22
22
unit-tests :
23
23
name : PHPUnit Tests [PHP ${{ matrix.php-version }}]
24
- runs-on : ubuntu-20.04
24
+ runs-on : ubuntu-latest
25
25
26
26
strategy :
27
27
fail-fast : false
30
30
- ' 7.4'
31
31
- ' 8.0'
32
32
- ' 8.1'
33
+ - ' 8.2'
34
+ - ' 8.3'
33
35
34
36
steps :
35
37
- name : Checkout repository
@@ -43,16 +45,16 @@ jobs:
43
45
coverage : xdebug
44
46
45
47
- name : Get composer cache directory
46
- run : echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
48
+ id : composer-cache
49
+ run : echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
47
50
48
51
- name : Cache composer dependencies
49
52
uses : actions/cache@v3
50
53
with :
51
- path : ${{ env .COMPOSER_CACHE_FILES_DIR }}
52
- key : composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
54
+ path : ${{ steps.composer-cache.outputs .COMPOSER_CACHE_FILES_DIR }}
55
+ key : composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
53
56
restore-keys : |
54
- composer-${{ runner.os }}-${{ matrix.php-version }}-
55
- composer-${{ runner.os }}-
57
+ composer-${{ matrix.php-version }}-
56
58
composer-
57
59
58
60
- name : Setup Composer's GitHub OAuth access
75
77
76
78
coveralls-upload :
77
79
name : Trigger parallel build webhook on Coveralls
78
- runs-on : ubuntu-20.04
80
+ runs-on : ubuntu-latest
79
81
needs :
80
82
- unit-tests
81
83
You can’t perform that action at this time.
0 commit comments