12
12
13
13
tests :
14
14
name : Tests
15
- runs-on : Ubuntu-20.04
16
15
17
16
env :
18
17
extensions : amqp,apcu,igbinary,intl,mbstring,memcached,redis-5.3.4
@@ -21,15 +20,24 @@ jobs:
21
20
matrix :
22
21
include :
23
22
- php : ' 7.2'
23
+ os : ubuntu-20.04
24
24
- php : ' 7.4'
25
+ os : ubuntu-20.04
26
+ - php : ' 8.0'
27
+ os : macos-11
25
28
- php : ' 8.0'
26
29
mode : high-deps
30
+ os : ubuntu-20.04
27
31
- php : ' 8.1'
28
32
mode : low-deps
33
+ os : ubuntu-20.04
29
34
- php : ' 8.2'
30
35
mode : experimental
36
+ os : ubuntu-20.04
31
37
fail-fast : false
32
38
39
+ runs-on : " ${{ matrix.os }}"
40
+
33
41
steps :
34
42
- name : Checkout
35
43
uses : actions/checkout@v2
50
58
extensions : " ${{ env.extensions }}"
51
59
tools : flex
52
60
61
+ - name : Install Homebrew packages
62
+ if : " matrix.os == 'macos-11'"
63
+ run : |
64
+ brew install parallel
65
+
53
66
- name : Configure environment
54
67
run : |
55
68
git config --global user.email ""
@@ -61,11 +74,11 @@ jobs:
61
74
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
62
75
63
76
echo COLUMNS=120 >> $GITHUB_ENV
64
- echo PHPUNIT="$(readlink -f . /phpunit) --exclude-group tty,benchmark,intl-data" >> $GITHUB_ENV
77
+ echo PHPUNIT="$(pwd) /phpunit --exclude-group tty,benchmark,intl-data" >> $GITHUB_ENV
65
78
echo COMPOSER_UP='composer update --no-progress --ansi' >> $GITHUB_ENV
66
79
67
80
SYMFONY_VERSIONS=$(git ls-remote -q --heads | cut -f2 | grep -o '/[1-9][0-9]*\.[0-9].*' | sort -V)
68
- SYMFONY_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+' )
81
+ SYMFONY_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | cut -d "'" -f2 | cut -d '.' -f 1-2 )
69
82
SYMFONY_FEATURE_BRANCH=$(curl -s https://raw.githubusercontent.com/symfony/recipes/flex/main/index.json | jq -r '.versions."dev-name"')
70
83
71
84
# Install the phpunit-bridge from a PR if required
@@ -111,9 +124,9 @@ jobs:
111
124
112
125
# Skip the phpunit-bridge on bugfix-branches when not in *-deps mode
113
126
if [[ ! "${{ matrix.mode }}" = *-deps && $SYMFONY_VERSION != $SYMFONY_FEATURE_BRANCH ]]; then
114
- echo COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' -printf '%h ' ) >> $GITHUB_ENV
127
+ echo COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' | xargs dirname - ) >> $GITHUB_ENV
115
128
else
116
- echo COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h ' ) >> $GITHUB_ENV
129
+ echo COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist | xargs dirname - ) >> $GITHUB_ENV
117
130
fi
118
131
119
132
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number as the next one
@@ -135,7 +148,7 @@ jobs:
135
148
echo "::endgroup::"
136
149
137
150
- name : Patch return types
138
- if : " matrix.php == '8.1' && ! matrix.mode"
151
+ if : " matrix.php == '8.1' && ! matrix.mode && matrix.os == 'ubuntu-20.04' "
139
152
run : |
140
153
sed -i 's/"\*\*\/Tests\/"//' composer.json
141
154
composer install -q --optimize-autoloader
0 commit comments