@@ -13,30 +13,27 @@ jobs:
13
13
security :
14
14
name : Security
15
15
runs-on : ${{ matrix.os }}
16
-
17
16
strategy :
18
17
fail-fast : false
19
18
matrix :
20
- php : [ '8.1' ] # Note: This workflow requires only the LATEST version of PHP
19
+ php : [ '8.1' ]
21
20
os : [ ubuntu-latest ]
22
-
23
- steps : # General Steps
21
+ steps :
24
22
- name : Set Git To Use LF
25
23
run : |
26
24
git config --global core.autocrlf false
27
25
git config --global core.eol lf
28
26
- name : Checkout
29
27
uses : actions/checkout@v2
30
-
31
- # Install PHP Dependencies
32
28
- name : Setup PHP ${{ matrix.php }}
33
29
uses : shivammathur/setup-php@v2
34
30
with :
35
31
php-version : ${{ matrix.php }}
36
- - name : Validate Composer
32
+ - name : Update Composer
33
+ run : composer self-update
34
+ - name : Validate Composer Config
37
35
run : composer validate
38
36
- name : Get Composer Cache Directory
39
- # Docs: <https://github.com/actions/cache/blob/master/examples.md#php---composer>
40
37
id : composer-cache
41
38
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
42
39
- name : Restore Composer Cache
@@ -51,38 +48,33 @@ jobs:
51
48
timeout_minutes : 5
52
49
max_attempts : 5
53
50
command : composer update --prefer-dist --no-interaction --no-progress
54
-
55
- # Execution
56
51
- name : Security Advisories
57
52
run : composer require --dev roave/security-advisories:dev-latest
58
53
59
54
psalm :
60
55
name : Psalm
61
56
runs-on : ${{ matrix.os }}
62
-
63
57
strategy :
64
58
fail-fast : false
65
59
matrix :
66
- php : [ '8.1' ] # Note: This workflow requires only the LATEST version of PHP
60
+ php : [ '8.1' ]
67
61
os : [ ubuntu-latest ]
68
-
69
- steps : # General Steps
62
+ steps :
70
63
- name : Set Git To Use LF
71
64
run : |
72
65
git config --global core.autocrlf false
73
66
git config --global core.eol lf
74
67
- name : Checkout
75
68
uses : actions/checkout@v2
76
-
77
- # Install PHP Dependencies
78
69
- name : Setup PHP ${{ matrix.php }}
79
70
uses : shivammathur/setup-php@v2
80
71
with :
81
72
php-version : ${{ matrix.php }}
82
- - name : Validate Composer
73
+ - name : Update Composer
74
+ run : composer self-update
75
+ - name : Validate Composer Config
83
76
run : composer validate
84
77
- name : Get Composer Cache Directory
85
- # Docs: <https://github.com/actions/cache/blob/master/examples.md#php---composer>
86
78
id : composer-cache
87
79
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
88
80
- name : Restore Composer Cache
@@ -97,60 +89,52 @@ jobs:
97
89
timeout_minutes : 5
98
90
max_attempts : 5
99
91
command : composer update --prefer-dist --no-interaction --no-progress
100
-
101
- # Execution
102
92
- name : Static Analysis
103
93
continue-on-error : true
104
94
run : vendor/bin/psalm --no-cache
105
95
106
96
unit-tests :
107
- name : Build (${{matrix.php}}, ${{ matrix.os }}, ${{ matrix.stability }})
108
- runs-on : ${{ matrix.os }}
109
-
110
- strategy :
111
- fail-fast : false
112
- matrix :
113
- php : [ '8.1' ]
114
- os : [ ubuntu-latest, macos-latest, windows-latest ]
115
- stability : [ prefer-lowest, prefer-stable ]
116
-
117
- steps : # General Steps
118
- - name : Set Git To Use LF
119
- run : |
120
- git config --global core.autocrlf false
121
- git config --global core.eol lf
122
- - name : Checkout
123
- uses : actions/checkout@v2
124
-
125
- # Install PHP Dependencies
126
- - name : Setup PHP ${{ matrix.php }}
127
- uses : shivammathur/setup-php@v2
128
- with :
129
- php-version : ${{ matrix.php }}
130
- # PHP Extras
131
- coverage : pcov
132
- tools : pecl
133
- ini-values : " memory_limit=-1"
134
- extensions : phar, ffi
135
- - name : Validate Composer
136
- run : composer validate
137
- - name : Get Composer Cache Directory
138
- # Docs: <https://github.com/actions/cache/blob/master/examples.md#php---composer>
139
- id : composer-cache
140
- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
141
- - name : Restore Composer Cache
142
- uses : actions/cache@v1
143
- with :
144
- path : ${{ steps.composer-cache.outputs.dir }}
145
- key : ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
146
- restore-keys : ${{ runner.os }}-${{ matrix.php }}-composer-
147
- - name : Install Dependencies
148
- uses : nick-invision/retry@v1
149
- with :
150
- timeout_minutes : 5
151
- max_attempts : 5
152
- command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
153
-
154
- # Execution
155
- - name : Execute Tests
156
- run : vendor/bin/phpunit --testdox --verbose
97
+ name : Build (${{matrix.php}}, ${{ matrix.os }}, ${{ matrix.stability }})
98
+ runs-on : ${{ matrix.os }}
99
+ strategy :
100
+ fail-fast : false
101
+ matrix :
102
+ php : [ '8.1', '8.2' ]
103
+ os : [ ubuntu-latest, macos-latest, windows-latest ]
104
+ stability : [ prefer-lowest, prefer-stable ]
105
+ steps :
106
+ - name : Set Git To Use LF
107
+ run : |
108
+ git config --global core.autocrlf false
109
+ git config --global core.eol lf
110
+ - name : Checkout
111
+ uses : actions/checkout@v2
112
+ - name : Setup PHP ${{ matrix.php }}
113
+ uses : shivammathur/setup-php@v2
114
+ with :
115
+ php-version : ${{ matrix.php }}
116
+ coverage : pcov
117
+ tools : pecl
118
+ ini-values : " memory_limit=-1"
119
+ extensions : phar, ffi
120
+ - name : Update Composer
121
+ run : composer self-update
122
+ - name : Validate Composer Config
123
+ run : composer validate
124
+ - name : Get Composer Cache Directory
125
+ id : composer-cache
126
+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
127
+ - name : Restore Composer Cache
128
+ uses : actions/cache@v1
129
+ with :
130
+ path : ${{ steps.composer-cache.outputs.dir }}
131
+ key : ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
132
+ restore-keys : ${{ runner.os }}-${{ matrix.php }}-composer-
133
+ - name : Install Dependencies
134
+ uses : nick-invision/retry@v1
135
+ with :
136
+ timeout_minutes : 5
137
+ max_attempts : 5
138
+ command : composer update --${{ matrix.stability }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
139
+ - name : Execute Tests
140
+ run : vendor/bin/phpunit --testdox --verbose
0 commit comments