generated from Sylius/PluginSkeleton
-
Notifications
You must be signed in to change notification settings - Fork 3
Bump sylius 2.0 #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Wojdylak
wants to merge
6
commits into
BitBagCommerce:master
Choose a base branch
from
Wojdylak:bump-sylius-2.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Bump sylius 2.0 #63
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3fdfbfe
Add test application package
Wojdylak f248d90
Bump to sylius 1.14
Wojdylak 63d5fc9
Minor improvements
Wojdylak 7b213e4
Bump test application
Wojdylak 9b1f2df
Bump to sylius 2.0
Wojdylak 06ac967
Minor improvements
Wojdylak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,22 +15,17 @@ jobs: | |
| tests: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, | ||
| MySQL ${{ matrix.mysql }}" | ||
| name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}" | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| php: ["8.1", "8.2", "8.3"] | ||
| symfony: ["^5.4.21", "^6.4"] | ||
| sylius: ["~1.13.0", "~1.14.0"] | ||
| node: ["^20.x"] | ||
| php: ["8.2", "8.3"] | ||
| symfony: ["^6.4", "^7.2"] | ||
| sylius: ["~2.0.0", "~2.1.0"] | ||
| node: ["22.x"] | ||
| mysql: ["8.0"] | ||
|
|
||
| exclude: | ||
| - sylius: "~1.14.0" | ||
| symfony: ^5.4 | ||
|
|
||
| env: | ||
| APP_ENV: test | ||
| DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}" | ||
|
|
@@ -66,11 +61,6 @@ jobs: | |
| - name: Install certificates | ||
| run: symfony server:ca:install | ||
|
|
||
| - name: Run Chrome Headless | ||
| run: google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 & | ||
|
|
||
| - name: Run webserver | ||
| run: (cd tests/Application && symfony server:start --port=8080 --dir=public --daemon) | ||
|
|
||
| - name: Get Composer cache directory | ||
| id: composer-cache | ||
|
|
@@ -83,12 +73,14 @@ jobs: | |
| key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-php-${{ matrix.php }}-composer- | ||
|
|
||
| - name: Restrict Symfony version | ||
| if: matrix.symfony != '' | ||
| run: | | ||
| composer global config --no-plugins allow-plugins.symfony/flex true | ||
| composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10" | ||
| composer config extra.symfony.require "${{ matrix.symfony }}" | ||
|
|
||
| - name: Restrict Sylius version | ||
| if: matrix.sylius != '' | ||
| run: composer require "sylius/sylius:${{ matrix.sylius }}" --no-update --no-scripts --no-interaction | ||
|
|
@@ -107,28 +99,31 @@ jobs: | |
| key: ${{ runner.os }}-node-${{ matrix.node }}-yarn-${{ hashFiles('**/package.json **/yarn.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-node-${{ matrix.node }}-yarn- | ||
|
|
||
| - name: Install JS dependencies | ||
| run: (cd tests/Application && yarn install) | ||
| run: yarn install --cwd vendor/sylius/test-application | ||
|
|
||
| - name: Prepare test application database | ||
| run: | | ||
| (cd tests/Application && bin/console doctrine:database:create -vvv) | ||
| (cd tests/Application && bin/console doctrine:schema:create -vvv) | ||
| vendor/bin/console doctrine:database:create -vvv | ||
| vendor/bin/console doctrine:schema:create -vvv | ||
|
|
||
| - name: Prepare test application assets | ||
| run: | | ||
| (cd tests/Application && bin/console assets:install public -vvv) | ||
| (cd tests/Application && yarn encore dev) | ||
| vendor/bin/console assets:install -vvv | ||
| yarn --cwd vendor/sylius/test-application encore prod | ||
|
|
||
| - name: Prepare test application cache | ||
| run: (cd tests/Application && bin/console cache:warmup -vvv) | ||
| run: vendor/bin/console cache:warmup -vvv | ||
|
|
||
| - name: Load fixtures in test application | ||
| run: (cd tests/Application && bin/console sylius:fixtures:load -n) | ||
| run: vendor/bin/console sylius:fixtures:load -n | ||
|
|
||
| - name: Validate composer.json | ||
| run: composer validate --ansi --strict | ||
|
|
||
| - name: Validate database schema | ||
| run: (cd tests/Application && bin/console doctrine:schema:validate) | ||
| run: vendor/bin/console doctrine:schema:validate | ||
|
|
||
| - name: Run PHPStan | ||
| run: vendor/bin/phpstan analyse -c phpstan.neon -l 8 src/ | ||
|
|
@@ -139,6 +134,12 @@ jobs: | |
| - name: Run PHPSpec | ||
| run: vendor/bin/phpspec run --ansi -f progress --no-interaction | ||
|
|
||
| - name: Run Chrome Headless | ||
| run: google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 & | ||
|
|
||
| - name: Run webserver | ||
| run: symfony server:start --port=8080 --daemon && symfony -V | ||
|
|
||
| - name: Run Behat | ||
| run: vendor/bin/behat --colors --strict -vvv --no-interaction || vendor/bin/behat --colors --strict -vvv --no-interaction --rerun | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "controllers": [], | ||
| "entrypoints": [] | ||
| } |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "controllers": [], | ||
| "entrypoints": [] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import './js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import Swiper from 'swiper'; | ||
| import { Navigation, Autoplay } from 'swiper/modules'; | ||
|
|
||
| import 'swiper/css'; | ||
|
|
||
| const bannersCarousels = document.querySelectorAll('.banners-carousel') | ||
|
|
||
| for (let i= 0; i < bannersCarousels.length; i++ ) { | ||
|
|
||
| bannersCarousels[i].classList.add(`banners-carousel-${i}`); | ||
|
|
||
| const swiper = new Swiper(`.banners-carousel-${i}`, { | ||
| autoplay: { | ||
| delay: 5000, | ||
| }, | ||
| loop: true, | ||
| modules: [Navigation, Autoplay], | ||
| navigation: { | ||
| nextEl: `.banners-carousel-${i} .swiper-button-next`, | ||
| prevEl: `.banners-carousel-${i} .swiper-button-prev`, | ||
| }, | ||
| observeParents: true, | ||
| observer: true, | ||
| slidesPerView: 1, | ||
| spaceBetween: 32, | ||
| speed: 400, | ||
| }); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
| <!-- | ||
|
|
||
| This file has been created by developers from BitBag. | ||
| Feel free to contact us once you face any issues or want to start | ||
| You can find more information about us on https://bitbag.io and write us | ||
| an email on [email protected]. | ||
|
|
||
| --> | ||
|
|
||
| <properties xmlns="https://api-platform.com/schema/metadata/properties-3.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="https://api-platform.com/schema/metadata/properties-3.0 https://api-platform.com/schema/metadata/properties-3.0.xsd" | ||
| > | ||
| <property resource="%bitbag_sylius_banner_plugin.model.ad.class%" name="id" identifier="true" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.ad.class%" name="code" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.ad.class%" name="name" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.ad.class%" name="startAt" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.ad.class%" name="endAt" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.ad.class%" name="priority" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.ad.class%" name="banners" writable="false"/> | ||
| </properties> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
| <!-- | ||
|
|
||
| This file has been created by developers from BitBag. | ||
| Feel free to contact us once you face any issues or want to start | ||
| You can find more information about us on https://bitbag.io and write us | ||
| an email on [email protected]. | ||
|
|
||
| --> | ||
|
|
||
| <properties xmlns="https://api-platform.com/schema/metadata/properties-3.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="https://api-platform.com/schema/metadata/properties-3.0 https://api-platform.com/schema/metadata/properties-3.0.xsd" | ||
| > | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="id" identifier="true" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="path" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="alt" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="fileName" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="link" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="priority" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="locale" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="section" writable="false"/> | ||
| <property resource="%bitbag_sylius_banner_plugin.model.banner.class%" name="ads" writable="false"/> | ||
| </properties> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be deleted