File tree Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -16,59 +16,50 @@ jobs:
16
16
- ' '
17
17
- ' lowest'
18
18
symfony :
19
- - ' 3.4.*'
20
19
- ' 4.4.*'
21
- - ' 5.0 .*'
20
+ - ' 5.3 .*'
22
21
- ' 6.0.*'
23
22
exclude :
24
- - php : ' 7.2'
25
- symfony : ' 3.4.*'
26
- dependency : ' lowest'
27
23
- php : ' 7.2'
28
24
symfony : ' 4.4.*'
29
25
dependency : ' lowest'
30
26
- php : ' 7.2'
31
27
symfony : ' 6.0.*'
32
- - php : ' 7.3'
33
- symfony : ' 3.4.*'
34
28
- php : ' 7.3'
35
29
symfony : ' 4.4.*'
36
30
- php : ' 7.3'
37
31
symfony : ' 6.0.*'
38
- - php : ' 7.4'
39
- symfony : ' 3.4.*'
40
32
- php : ' 7.4'
41
33
symfony : ' 4.4.*'
42
34
- php : ' 7.4'
43
35
symfony : ' 6.0.*'
44
- - php : ' 8.0'
45
- symfony : ' 3.4.*'
46
36
- php : ' 8.0'
47
37
symfony : ' 4.4.*'
48
38
fail-fast : false
49
39
steps :
50
40
- name : Checkout
51
- uses : actions/checkout@v1
41
+ uses : actions/checkout@v2
52
42
53
43
- name : Setup PHP
54
44
uses : shivammathur/setup-php@v2
55
45
with :
56
46
php-version : ${{ matrix.php }}
57
- extensions : composer, flex, pcov
47
+ extensions : pcov
48
+ tools : flex
58
49
59
50
- name : Configure Symfony
60
51
run : composer config extra.symfony.require "${{ matrix.symfony }}"
61
52
62
53
- name : Prefer unstable Composer dependencies if Symfony 6.0
63
- if : matrix.symfony == '6.0.x '
54
+ if : matrix.symfony == '6.0.* '
64
55
run : composer config prefer-stable false
65
56
66
57
- name : Get Composer Cache Directory
67
58
id : composer-cache
68
59
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
69
60
70
61
- name : Cache dependencies
71
- uses : actions/cache@v1
62
+ uses : actions/cache@v2
72
63
with :
73
64
path : ${{ steps.composer-cache.outputs.dir }}
74
65
key : ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ jobs:
118
118
matrix :
119
119
operating-system : [ ubuntu-latest, windows-latest ]
120
120
php : [ '7.4', '8.0' ]
121
- symfony : ['4.4', '5.3']
121
+ symfony : ['^ 4.4', '^ 5.3']
122
122
123
123
steps :
124
124
- uses : actions/checkout@master
Original file line number Diff line number Diff line change @@ -78,17 +78,17 @@ public function addConfigFile($configFile)
78
78
$ this ->configFiles [] = $ configFile ;
79
79
}
80
80
81
- public function getCacheDir ()
81
+ public function getCacheDir (): string
82
82
{
83
83
return sys_get_temp_dir ().'/NyholmBundleTest/ ' .$ this ->cachePrefix ;
84
84
}
85
85
86
- public function getLogDir ()
86
+ public function getLogDir (): string
87
87
{
88
88
return sys_get_temp_dir ().'/NyholmBundleTest/log ' ;
89
89
}
90
90
91
- public function getProjectDir ()
91
+ public function getProjectDir (): string
92
92
{
93
93
if (null === $ this ->fakedProjectDir ) {
94
94
return realpath (__DIR__ .'/../../../../ ' );
@@ -113,7 +113,7 @@ public function setProjectDir($projectDir)
113
113
$ this ->fakedProjectDir = $ projectDir ;
114
114
}
115
115
116
- public function registerBundles ()
116
+ public function registerBundles (): iterable
117
117
{
118
118
$ this ->bundlesToRegister = array_unique ($ this ->bundlesToRegister );
119
119
$ bundles = [];
@@ -182,7 +182,7 @@ public function loadRoutes(LoaderInterface $loader)
182
182
/**
183
183
* {@inheritdoc}
184
184
*/
185
- protected function buildContainer ()
185
+ protected function buildContainer (): ContainerBuilder
186
186
{
187
187
$ container = parent ::buildContainer ();
188
188
You can’t perform that action at this time.
0 commit comments