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