@@ -14,27 +14,21 @@ jobs:
1414 tests :
1515 runs-on : ubuntu-latest
1616
17- name : " Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}"
17+ name : " Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}, Trix ${{ matrix.trix }} "
1818
1919 strategy :
2020 fail-fast : false
2121 matrix :
22- php : ["8.0", "8. 1", "8.2", "8.3"]
22+ php : ["8.1", "8.2", "8.3"]
2323 symfony : ["^5.4", "^6.4"]
24- sylius : ["~1.12.0", "~1. 13.0", "~1.14.0"]
24+ sylius : ["~1.13.0", "~1.14.0"]
2525 node : ["20.x"]
2626 mysql : ["8.0"]
27+ trix : [false, true]
2728
2829 exclude :
29- - sylius : " ~1.13.0"
30- php : 8.0
31- - sylius : " ~1.14.0"
32- php : 8.0
3330 - sylius : " ~1.14.0"
3431 symfony : ^5.4
35- - sylius : " ~1.12.0"
36- php : 8.0
37- symfony : ^6.4
3832
3933 env :
4034 APP_ENV : test
@@ -115,7 +109,17 @@ jobs:
115109
116110 - name : Install JS dependencies
117111 run : |
118- (cd tests/Application && yarn install)
112+ cd tests/Application
113+ if [ "${{ matrix.trix }}" = "true" ]; then
114+ yarn add trix
115+ sed -i "s/wysiwyg: 'ckeditor'/wysiwyg: 'trix'/" webpack.config.js
116+ fi
117+ yarn install
118+
119+ - name : Configure Trix if enabled
120+ if : matrix.trix == true
121+ run : |
122+ printf "bit_bag_sylius_cms:\n wysiwyg_editor: trix\n" >> tests/Application/config/packages/bitbag_sylius_cms_plugin.yaml
119123
120124 - name : Prepare test application database
121125 run : |
@@ -145,25 +149,29 @@ jobs:
145149 - name : Run PHPUnit
146150 run : vendor/bin/phpunit --colors=always
147151
152+ - name : Set Behat tags
153+ if : matrix.trix != true
154+ run : echo "BEHAT_TAGS=--tags='~@wysiwyg'" >> $GITHUB_ENV
155+
148156 - name : Run Behat
149- run : vendor/bin/behat --colors --strict -vvv --no-interaction -f progress || vendor/bin/behat --colors --strict -vvv --no-interaction -f progress --rerun
157+ run : vendor/bin/behat ${{ env.BEHAT_TAGS }} --colors --strict -vvv --no-interaction -f progress || vendor/bin/behat ${{ env.BEHAT_TAGS }} --colors --strict -vvv --no-interaction -f progress --rerun
150158
151159 - name : Upload Behat logs
152- uses : actions/upload-artifact@v3
160+ uses : actions/upload-artifact@v4
153161 if : failure()
154162 with :
155163 name : Behat logs
156164 path : etc/build/
157165 if-no-files-found : ignore
158166
159- - name : Failed build Slack notification
160- uses : rtCamp/action-slack-notify@v2
161- if : ${{ failure() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') }}
162- env :
163- SLACK_CHANNEL : ${{ secrets.FAILED_BUILD_SLACK_CHANNEL }}
164- SLACK_COLOR : ${{ job.status }}
165- SLACK_ICON : https://github.com/rtCamp.png?size=48
166- SLACK_MESSAGE : ' :x:'
167- SLACK_TITLE : Failed build on ${{ github.event.repository.name }} repository
168- SLACK_USERNAME : ${{ secrets.FAILED_BUILD_SLACK_USERNAME }}
169- SLACK_WEBHOOK : ${{ secrets.FAILED_BUILD_SLACK_WEBHOOK }}
167+ # - name: Failed build Slack notification
168+ # uses: rtCamp/action-slack-notify@v2
169+ # if: ${{ failure() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') }}
170+ # env:
171+ # SLACK_CHANNEL: ${{ secrets.FAILED_BUILD_SLACK_CHANNEL }}
172+ # SLACK_COLOR: ${{ job.status }}
173+ # SLACK_ICON: https://github.com/rtCamp.png?size=48
174+ # SLACK_MESSAGE: ':x:'
175+ # SLACK_TITLE: Failed build on ${{ github.event.repository.name }} repository
176+ # SLACK_USERNAME: ${{ secrets.FAILED_BUILD_SLACK_USERNAME }}
177+ # SLACK_WEBHOOK: ${{ secrets.FAILED_BUILD_SLACK_WEBHOOK }}
0 commit comments