88 release :
99 types : [created]
1010 schedule :
11- -
12- cron : " 0 1 * * 6" # Run at 1am every Saturday
11+ - cron : " 0 1 * * 6" # Run at 1am every Saturday
1312 workflow_dispatch : ~
1413
1514jobs :
1615 tests :
1716 runs-on : ubuntu-latest
18-
17+
1918 name : " Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}"
20-
19+
2120 strategy :
2221 fail-fast : false
2322 matrix :
24- php : [8.0, 8.1, 8.2, 8.3]
25- symfony : [^5.4, ^6.0 ]
26- sylius : [~ 1.12.0, ~ 1.13.0 ]
27- node : [18.x, 20.x]
28- mysql : [5.7, 8.0]
29-
23+ php : [ " 8.0", " 8.1", " 8.2", " 8.3" ]
24+ symfony : [ " ^5.4", " ^6.4" ]
25+ sylius : [ "^ 1.12", "^ 1.13" ]
26+ node : [ " 18.x", " 20.x" ]
27+ mysql : [ " 8.0" ]
28+
3029 exclude :
31- - sylius : " ~1.13.0"
32- php : " 8.0"
30+ - sylius : ^1.13
31+ php : 8.0
32+ - sylius : ^1.12
33+ php : 8.0
34+ symfony : ^6.4
3335
3436 env :
3537 APP_ENV : test
@@ -84,25 +86,23 @@ jobs:
8486 -
8587 name : Get Composer cache directory
8688 id : composer-cache
87- run : echo "dir= $(composer config cache-files-dir)" >> "$GITHUB_OUTPUT "
89+ run : echo "::set-output name=dir:: $(composer config cache-files-dir)"
8890
8991 -
9092 name : Cache Composer
91- uses : actions/cache@v2
93+ uses : actions/cache@v4
9294 with :
9395 path : ${{ steps.composer-cache.outputs.dir }}
9496 key : ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}
9597 restore-keys : |
9698 ${{ runner.os }}-php-${{ matrix.php }}-composer-
97-
9899 -
99100 name : Restrict Symfony version
100101 if : matrix.symfony != ''
101102 run : |
102103 composer global config --no-plugins allow-plugins.symfony/flex true
103104 composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
104105 composer config extra.symfony.require "${{ matrix.symfony }}"
105-
106106 -
107107 name : Restrict Sylius version
108108 if : matrix.sylius != ''
@@ -111,21 +111,22 @@ jobs:
111111 -
112112 name : Install PHP dependencies
113113 run : composer install --no-interaction
114+ env :
115+ SYMFONY_REQUIRE : ${{ matrix.symfony }}
114116
115117 -
116118 name : Get Yarn cache directory
117119 id : yarn-cache
118- run : echo "dir= $(yarn cache dir)" >> "$GITHUB_OUTPUT "
120+ run : echo "::set-output name=dir:: $(yarn cache dir)"
119121
120122 -
121123 name : Cache Yarn
122- uses : actions/cache@v2
124+ uses : actions/cache@v4
123125 with :
124126 path : ${{ steps.yarn-cache.outputs.dir }}
125127 key : ${{ runner.os }}-node-${{ matrix.node }}-yarn-${{ hashFiles('**/package.json **/yarn.lock') }}
126128 restore-keys : |
127129 ${{ runner.os }}-node-${{ matrix.node }}-yarn-
128-
129130 -
130131 name : Install JS dependencies
131132 run : (cd tests/Application && yarn install)
@@ -135,13 +136,11 @@ jobs:
135136 run : |
136137 (cd tests/Application && bin/console doctrine:database:create -vvv)
137138 (cd tests/Application && bin/console doctrine:schema:create -vvv)
138-
139139 -
140140 name : Prepare test application assets
141141 run : |
142142 (cd tests/Application && bin/console assets:install public -vvv)
143143 (cd tests/Application && yarn encore dev)
144-
145144 -
146145 name : Prepare test application cache
147146 run : (cd tests/Application && bin/console cache:warmup -vvv)
@@ -158,30 +157,25 @@ jobs:
158157 name : Validate database schema
159158 run : (cd tests/Application && bin/console doctrine:schema:validate)
160159
161- -
162- name : Run PHPStan
163- run : vendor/bin/phpstan analyse -c phpstan.neon -l 8 src/
164-
165- # TODO: Temporary disabled!
166- # -
167- # name: Run Psalm
168- # run: vendor/bin/psalm
169-
170160 -
171161 name : Run PHPSpec
172162 run : vendor/bin/phpspec run --ansi -f progress --no-interaction
173163
174- # -
175- # name: Run PHPUnit
176- # run: vendor/bin/phpunit --colors=always
164+ -
165+ name : Run PHPUnit
166+ run : vendor/bin/phpunit --colors=always
167+
168+ -
169+ name : Create behat logs directory
170+ run : (mkdir -p etc/build && chmod a+rw etc/build )
177171
178172 -
179173 name : Run Behat
180174 run : vendor/bin/behat --colors --strict -vvv --no-interaction || vendor/bin/behat --colors --strict -vvv --no-interaction --rerun
181175
182176 -
183177 name : Upload Behat logs
184- uses : actions/upload-artifact@v2
178+ uses : actions/upload-artifact@v3
185179 if : failure()
186180 with :
187181 name : Behat logs
0 commit comments