Skip to content
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

[DOCS]Add cookbook with how to customize taxes #12724

Closed
wants to merge 555 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
555 commits
Select commit Hold shift + click to select a range
69044b7
feature #12552 Add support for PHP 8.0 (pamil)
pamil Apr 23, 2021
d3aaaa9
[DOC] update theme structure documentation
Apr 24, 2021
0754684
[Translations] Updated translations from Crowdin
Apr 26, 2021
fdd0bce
Merge branch '1.9' into master
AdamKasp Apr 26, 2021
f4f0d83
remove comment
SirDomin Apr 26, 2021
54de155
feature #12534 [Api] upgrade taxon filter on product (AdamKasp, GSade…
GSadee Apr 26, 2021
04a502a
upmerge
AdamKasp Apr 27, 2021
9d91e25
refactor + set channel on request
SirDomin Apr 27, 2021
f5b3c76
remove currency step
SirDomin Apr 27, 2021
9caa1c2
behat hostname fix
SirDomin Apr 27, 2021
5eee81c
Update vimeo/psalm requirement from 4.7.0 to 4.7.1
dependabot-preview[bot] Apr 26, 2021
0661713
feature #12568 [API] channel based product collection (SirDomin)
GSadee Apr 28, 2021
090d1dd
remove productCode, mention in upgrade file
SirDomin Apr 28, 2021
1df4714
update command
SirDomin Apr 28, 2021
9a07588
pr-fix
SirDomin Apr 28, 2021
9af69b9
Upgrade to GitHub-native Dependabot
dependabot-preview[bot] Apr 28, 2021
4fd80b9
refactor #12571 [API] remove productCode from addToCart (SirDomin)
AdamKasp Apr 29, 2021
3e2cf94
Remove /AddProductReviewCommandFieldItemIriToIdentifierDenormalizer
Tomanhez Apr 13, 2021
70dff14
Add ItemIriToIdentifierConverter
Tomanhez Apr 13, 2021
e037a75
dd CommandFieldItemIriToIdentifierDenormalizerSpec and CommandItemIri…
Tomanhez Apr 13, 2021
6bb6936
Add fixes for tests and implementation
Tomanhez Apr 14, 2021
deb2cfa
replace code to iri in ChangePaymentMethod and change id to code in P…
Tomanhez Apr 14, 2021
05a355b
Add ADR and note to Upgrade file
Tomanhez Apr 15, 2021
f7b6f2d
Add fixes for tests and implementations
Tomanhez Apr 15, 2021
8392bcd
Implement another endpoints
arti0090 Apr 29, 2021
08cc365
Rebase and rework product adding endpoint
arti0090 Apr 29, 2021
786a7d6
Fix issues in configuration and failing behat
arti0090 Apr 29, 2021
43e3e8e
refactor #12487 [Api][POC]Convert iri to code in command (Tomanhez, a…
lchrusciel Apr 29, 2021
ab458b3
Merge pull request #12563 from SyliusBot/crowdin/master-2021-04-26-06-03
pamil Apr 29, 2021
ede8316
Apply coding standard fixes
pamil May 1, 2021
e131868
Update vimeo/psalm requirement from 4.7.1 to 4.7.2
dependabot-preview[bot] May 3, 2021
16eeaa6
Fix return type
Tomanhez May 4, 2021
aece331
Cast to bool instead of using boolval function
pamil May 4, 2021
8fb52b4
bug #12581 [Api]Fix isAllowedProperty return type in ReflectionExtrac…
pamil May 4, 2021
965b50f
Merge pull request #12580 from Sylius/dependabot/composer/vimeo/psalm…
pamil May 4, 2021
6ab6d6e
minor #12574 Upgrade to GitHub-native Dependabot (dependabot-preview[…
pamil May 4, 2021
5eadc82
Merge pull request #12495 from Sylius/dependabot/npm_and_yarn/y18n-3.2.2
pamil May 4, 2021
b7cfd2b
Merge pull request #12553 from Sylius/dependabot/npm_and_yarn/ssri-6.0.2
pamil May 4, 2021
f7aca10
Configure Dependabot
pamil May 4, 2021
f71891b
Set Dependabot to increase dependencies versions
pamil May 4, 2021
69bc357
[API] Validate if product or variant is enabled
arti0090 May 3, 2021
7e63518
Update symfony/polyfill-intl-icu requirement from ^1.17 to ^1.22
dependabot[bot] May 4, 2021
29ea6a6
Update egulias/email-validator requirement from ^3.0 to ^3.1
dependabot[bot] May 4, 2021
1dc73b6
Set Dependabot to increase dependencies versions only if neccessary
pamil May 4, 2021
7152666
Update sylius-labs/doctrine-migrations-extra-bundle requirement
dependabot[bot] May 4, 2021
f5824a6
feature #12518 fix: add unique index to token_value in order entity (…
pamil May 4, 2021
7dec4b9
feature #12429 Use 4-Byte UTF-8 Unicode Encoding (jacquesbh)
pamil May 4, 2021
d044a2d
minor #12092 Resource layer tip - English corrections (tuala)
pamil May 4, 2021
408639d
Include just one MySQL 5.7 build
pamil May 4, 2021
8c7a74a
Merge pull request #12591 from Sylius/dependabot/composer/sylius-labs…
pamil May 4, 2021
eb3b73c
Merge pull request #12589 from Sylius/dependabot/composer/egulias/ema…
pamil May 4, 2021
8be7d04
[Docs] fix api paths doc
AdamKasp May 4, 2021
d0f680a
Merge branch '1.9'
Zales0123 May 4, 2021
b49022d
Merge pull request #12588 from Sylius/dependabot/composer/symfony/pol…
pamil May 4, 2021
69425d3
minor #12592 Include just one MySQL 5.7 build (pamil)
pamil May 4, 2021
66fe6b2
bug #12562 [DOC] update theme structure documentation (Sylvain Just)
pamil May 4, 2021
2c82189
add missing behat scenario
arti0090 May 4, 2021
011444a
add api endpint customization docs
AdamKasp May 5, 2021
e365426
feature #12579 [API] Validate if product or variant is enabled (arti0…
AdamKasp May 5, 2021
3b8530d
Add behat scenario
Tomanhez May 5, 2021
6e92c21
Add behats implementation
Tomanhez May 5, 2021
2aed198
Add AuthenticationSuccessListener
Tomanhez May 5, 2021
8510891
Add last fixes for test and implementation
Tomanhez May 6, 2021
2ada3e8
feature #12600 [Api]Add customers id next to token (Tomanhez)
GSadee May 6, 2021
004f4e1
[Docs] fixes
AdamKasp May 6, 2021
2ec679d
feature #12599 [Docs] Add and improve new api docs (AdamKasp)
GSadee May 7, 2021
dd74127
upmerge from 1.9
AdamKasp May 7, 2021
3653cae
Fixes after upmerge
AdamKasp May 7, 2021
52c9d36
bug #12610 Fixes after upmerge (AdamKasp)
GSadee May 7, 2021
7ec3d4e
Resolve upmerge conflict
GSadee May 7, 2021
191a065
[API][PHPSpec] Fix validator after upmerge
GSadee May 7, 2021
b1954f3
bug #12617 [API][PHPSpec] Fix validator after upmerge (GSadee)
lchrusciel May 10, 2021
aca768d
Merge branch '1.9'
lchrusciel May 10, 2021
b9d06d7
Merge branch '1.9'
lchrusciel May 10, 2021
d7d9b63
Fix the build after upmerging 1.9 changes
pamil May 10, 2021
2a3900a
Generate changelog for v1.10.0-ALPHA.1
pamil May 10, 2021
84b4c00
Change application's version to v1.10.0-ALPHA.1
pamil May 10, 2021
b50b7bf
Change application's version to v1.10.0-DEV
pamil May 10, 2021
8ef2574
[API] sorting product by position in taxon
AdamKasp May 10, 2021
3b438f9
[API] Revert locale to localeCode in pickup cart
arti0090 May 11, 2021
45a61db
improve product filtering
AdamKasp May 12, 2021
2588620
feature #12621 [API] sorting product by position in taxon (AdamKasp)
GSadee May 12, 2021
2dc7a72
refactor #12623 [API] Revert locale to localeCode in pickup cart (art…
GSadee May 12, 2021
39d705b
Merge branch '1.9'
Zales0123 May 12, 2021
4a23a28
Merge branch '1.8' into 1.9
GSadee May 13, 2021
6269e2c
Merge branch '1.9'
GSadee May 13, 2021
6fda877
Mention localhost exposure for easier Facebook login
Zales0123 May 13, 2021
54c9efd
Merge branch '1.9'
GSadee May 13, 2021
fb0c807
unification of buses
May 5, 2021
6ed6307
middleware change
SirDomin May 6, 2021
4b9cfc9
trying to fix build
SirDomin May 7, 2021
31bb4a9
add deprecation info
SirDomin May 10, 2021
39c6f03
allow no handlers added
SirDomin May 10, 2021
6fc9684
move framework config to CoreBundle, pr fixes
SirDomin May 11, 2021
a956542
refactor buses, add double tags
SirDomin May 12, 2021
19b7cb6
fix-build
SirDomin May 13, 2021
2ea9298
refactor #12602 [Refactor] Unification of buses (SirDomin)
GSadee May 14, 2021
dfd2ebb
[DOCS] API custom logic example
arti0090 May 12, 2021
2b1b419
text fixes + note that it will work in api
arti0090 May 13, 2021
84bf8e2
[Documentation][API] Fixes to custom business logic example
GSadee May 14, 2021
962ef7a
feature #12627 [DOCS] API custom logic example (arti0090, GSadee)
GSadee May 14, 2021
1b1d258
[DOCS] Change response codeblocks to be more clarified
arti0090 May 14, 2021
0a6af7c
style #12634 [DOCS] Change response codeblocks to be more clarified (…
GSadee May 14, 2021
5098ea8
Add tests for checking proper price per channel
Tomanhez May 12, 2021
1d78484
fix serialization groups
AdamKasp May 13, 2021
366daad
[API][Cart] Adjust serialization of cart
GSadee May 14, 2021
d293662
[Translations] Updated translations from Crowdin
May 17, 2021
7a905e8
Add inStock serialization to productVariant
arti0090 May 17, 2021
61f2965
minor #12626 [Api] Adding product to cart with proper product price p…
AdamKasp May 17, 2021
4571e19
moved adding new field to response and applied new scenario
arti0090 May 17, 2021
2318f31
feature #12639 [API]Add inStock serialization to productVariant (arti…
GSadee May 17, 2021
3e498bd
Fix Customizing API doc headers inconsistency
CoderMaggie May 17, 2021
4f20f56
Merge branch '1.9'
GSadee May 18, 2021
4b98464
[README] Supported versions update
lchrusciel May 18, 2021
84a24d0
Improve API Platform customisation guide
pamil May 18, 2021
be13cd4
Add behats and specs
Tomanhez May 18, 2021
6480120
Modify AddingEligibleProductVariantToCartValidator
Tomanhez May 18, 2021
d89cdca
Merge branch '1.9'
GSadee May 19, 2021
c5660e0
minor #12647 Improve API Platform customisation guide (pamil)
GSadee May 19, 2021
a0d7e4f
[API][Product] Expose default variant on product show and index
GSadee May 19, 2021
1639cb0
[API][Product] Add defaultVariant field to the Swagger schema
GSadee May 19, 2021
5e62ecd
[API][Product] Use proper normalizer in custom product normalizer ser…
GSadee May 19, 2021
0fb6a90
[API][Product] Add case when there is no variant to product normalizer
GSadee May 19, 2021
b6b95db
feature #12649 [API][Product] Expose default variant on product show …
lchrusciel May 19, 2021
2bd25cd
[API][ProductVariant] Resolve upmerge conflict
GSadee May 20, 2021
ef97569
[API][Product] Add additional specs for product normalizer
GSadee May 20, 2021
de3a88d
[API] Add missing inStock field to swagger
arti0090 May 20, 2021
c12dde4
remove unnesesary use statemant
AdamKasp May 20, 2021
1757827
minor #12652 [API][Product] Add additional specs for product normaliz…
AdamKasp May 20, 2021
6798ade
Changed to proper resource ProductVariant and fixed price
arti0090 May 20, 2021
293c706
style #12642 [Documentation] Fix Customizing API doc headers inconsis…
GSadee May 20, 2021
7331b95
Merge branch '1.9' into master
AdamKasp May 20, 2021
54911e2
[DOCS] Modify serialization fields in api
arti0090 May 17, 2021
1e7099a
Add customization by changing config files
arti0090 May 19, 2021
3bc7002
Add last fixes
Tomanhez May 20, 2021
1ba1e7c
[API] Adding inexistent payment method
arti0090 May 20, 2021
97913e5
feature #12648 [Api] Prevent product more than in stock (Tomanhez)
Zales0123 May 20, 2021
7be7c25
lexical fixes and changes for Normalizer example
arti0090 May 21, 2021
6c076c1
add notes regarding adding/extending existing normalizers
arti0090 May 21, 2021
7a15180
Changes to specs and behat tests
arti0090 May 21, 2021
f2ef5a2
Add tests and implementation
Tomanhez May 21, 2021
2e27e12
add validation on complete order
AdamKasp May 20, 2021
d4d8b6d
[API] Preventing from choosing unavailable shipping method during che…
GSadee May 21, 2021
25fd430
Add ChangingItemQuantityValidator
Tomanhez May 21, 2021
8cc1226
feature #12660 [API] Preventing from choosing unavailable shipping me…
lchrusciel May 21, 2021
ddb8a61
minor #12644 [README] Supported versions update (lchrusciel)
pamil May 21, 2021
87c5751
Merge pull request #12638 from SyliusBot/crowdin/master-2021-05-17-06-03
pamil May 21, 2021
d5302d6
Fixes
AdamKasp May 23, 2021
3eedfde
bug #12653 [API] Add missing inStock field to swagger (arti0090)
GSadee May 24, 2021
9963946
feature #12658 add validation on complete order (AdamKasp)
GSadee May 24, 2021
bab616b
feature #12654 [Api] Check stock sufficient while cart update (Tomanhez)
GSadee May 24, 2021
63416e5
Add tests
Tomanhez May 24, 2021
cc5b9de
Add serialization for description
Tomanhez May 24, 2021
b6d2e02
rename classes
arti0090 May 21, 2021
d1d4502
feature #12657 [API] Adding inexistent payment method (arti0090)
lchrusciel May 24, 2021
3f9d64c
[API] Add itemsTotal field to order resource
arti0090 May 21, 2021
41cca0a
Changes to scenarios
arti0090 May 21, 2021
0e88a33
Changes to scenario and serialization
arti0090 May 24, 2021
f41bf84
Fixes related to missing serialization group
arti0090 May 24, 2021
2c93fe9
new example and fixes
arti0090 May 24, 2021
648d021
[API] Prevent from using inexistent shipping method
pamil May 24, 2021
0381f73
Add fixes for tests and implemetations
Tomanhez May 24, 2021
33731fc
feature #12666 [API] Prevent from using inexistent shipping method (p…
GSadee May 24, 2021
1cc07c5
feature #12661 [API] Add itemsTotal field to order resource (arti0090)
GSadee May 24, 2021
9851dbe
feature #12663 [Api] Customer see description of a product (Tomanhez)
GSadee May 24, 2021
57779fb
Add Validation to chose payment method
AdamKasp May 24, 2021
6c125ea
Language related fixes
arti0090 May 25, 2021
f7b56ea
feature #12640 [DOCS] Modify serialization fields in api (arti0090)
GSadee May 25, 2021
fc31208
[API] short description on product index
AdamKasp May 25, 2021
b3c7f1c
feature #12669 [API] short description on product index (AdamKasp)
GSadee May 25, 2021
aeae7d9
Merge branch '1.9'
GSadee May 26, 2021
d207284
Merge branch '1.9'
Zales0123 May 26, 2021
2678c2c
refactor choose payment method validation
AdamKasp May 25, 2021
63a53b5
[API][Shop] Remove channel pricing from shop
lchrusciel May 1, 2021
b14a638
Fix for build of Sylius Standard
arti0090 May 26, 2021
31ffd47
adjust serializer to add price only for arrays
SirDomin May 26, 2021
d51d0b7
rebase
SirDomin May 26, 2021
22b9475
refactor #12672 Fix for build of Sylius Standard (arti0090)
GSadee May 26, 2021
17a5372
feature #12665 Add Validation to chose payment method (AdamKasp)
GSadee May 26, 2021
8e9377a
refactor #12578 [API][Shop] Remove channel pricing from shop (lchrusc…
GSadee May 26, 2021
4c12125
[API][Address] Remove account prefix from addresses endpoints
GSadee May 26, 2021
efae0a7
[API][Address] Replace address collection provider by address collect…
GSadee May 26, 2021
5ddda7d
[API][Address] Secure persisting and removing addresses only by logge…
GSadee May 26, 2021
67cf8bc
[API] Resolve upmerge conflict in register shop user handler
GSadee May 27, 2021
c43df28
refactor #12673 [API][Address] Remove account prefix from addresses e…
AdamKasp May 27, 2021
29f3d31
Add missing return value
AdamKasp May 27, 2021
f883403
bug #12675 Add missing return value (AdamKasp)
GSadee May 27, 2021
4ee4288
[API] Resolve upmerge conflict with validation of addressing an order
GSadee May 27, 2021
639f1cb
Merge branch '1.9'
pamil May 27, 2021
5d5b038
Prepare v1.11.0-dev branch
pamil May 27, 2021
dbdbd05
Merge branch '1.9' into 1.10
pamil May 27, 2021
2bb4057
Merge branch '1.10'
pamil May 27, 2021
b24505c
Apply coding standard fixes
pamil May 27, 2021
3e77c73
Merge branch '1.10'
pamil May 27, 2021
57052a7
Merge branch '1.9' into 1.10
pamil May 27, 2021
f44ff21
Generate changelog for v1.10.0-BETA.1
pamil May 27, 2021
fea77af
Change application's version to v1.10.0-BETA.1
pamil May 27, 2021
0f4488c
Change application's version to v1.10.0-DEV
pamil May 27, 2021
bba5af3
Merge branch '1.10'
pamil May 27, 2021
50a0b76
Merge branch '1.9' into 1.10
GSadee May 31, 2021
ad67420
Merge branch '1.10'
GSadee May 31, 2021
f2035e5
Resolve upmerge conflict
GSadee Jun 1, 2021
d4a7234
Merge branch '1.10'
GSadee Jun 1, 2021
05fe139
Improve the UPGRADE file for Sylius v1.10
pamil Jun 1, 2021
d5813cf
minor #12683 Improve the UPGRADE file for Sylius v1.10 (pamil)
GSadee Jun 2, 2021
01623fd
Merge branch '1.10'
GSadee Jun 2, 2021
c88e175
Merge branch '1.9' into 1.10
AdamKasp Jun 7, 2021
2c79e9c
Merge branch '1.10' into master
AdamKasp Jun 7, 2021
7849a0b
[API][Country] Initialize contract tests for api/v2
GSadee Jun 3, 2021
427616f
feature #12689 [API][Country] Initialize contract tests for api/v2 (G…
Zales0123 Jun 8, 2021
36eb5dd
[API][PaymentMethod] Add contract test for available payment methods …
GSadee Jun 7, 2021
01b1769
[API] Fix problem with getting command bus from container in api test…
GSadee Jun 7, 2021
b094954
[API] Fix CachedRouteNameResolverTest
GSadee Jun 8, 2021
a72f2e5
Merge branch '1.9' into 1.10
GSadee Jun 8, 2021
fecb02e
Merge branch '1.10'
GSadee Jun 8, 2021
5b3b39e
refactor #12695 [API][PaymentMethod] Add contract test for available …
lchrusciel Jun 8, 2021
28eacaf
Delay Sylius 1.10 release by two weeks
pamil Jun 8, 2021
9b4ac6b
minor #12701 Delay Sylius 1.10 release by two weeks (pamil)
Zales0123 Jun 9, 2021
01a36f6
Merge branch '1.10'
Zales0123 Jun 9, 2021
0e73cad
Add tests and implementation
Tomanhez Jun 9, 2021
91e4507
bug #12703 [Api] Denying usage of unexisting promotion coupon (Tomanhez)
Zales0123 Jun 9, 2021
4fbbb31
[API] Import proper context to fix coupon invalidity checking
Zales0123 Jun 8, 2021
de57cf1
Validate coupon on promotion from another channel
Zales0123 Jun 8, 2021
4f2a5d9
Receiving no discount for not-in-time coupon promotion
Zales0123 Jun 9, 2021
274554c
Receiving no discount for already used coupon promotion
Zales0123 Jun 9, 2021
4fbf939
Receiving no discount if coupon promotion rules are not fulfilled
Zales0123 Jun 9, 2021
bcc3354
Validator refactoring
Zales0123 Jun 9, 2021
70b2666
Unify invalid coupon/promotion validation message
Zales0123 Jun 9, 2021
831ab89
PromotionCouponEligbilityValidator refactoring
Zales0123 Jun 9, 2021
81bf5da
Incorporate changes from #12703 into the checker
Zales0123 Jun 9, 2021
f7efa10
Merge branch '1.9' into 1.10
Zales0123 Jun 9, 2021
eab39fa
Merge branch '1.10'
GSadee Jun 9, 2021
f272bdd
feature #12704 [API] Denying usage of coupon for invalid promotion (Z…
GSadee Jun 9, 2021
b39507a
Merge branch '1.9' into 1.10
GSadee Jun 10, 2021
bd298c1
Merge branch '1.10'
GSadee Jun 10, 2021
0ec98a0
Merge branch '1.9' into 1.10
GSadee Jun 10, 2021
83ff3bc
Merge branch '1.10'
GSadee Jun 10, 2021
bfc1a2b
Merge branch '1.9' into 1.10
pamil Jun 10, 2021
0b1dc4b
Merge branch '1.10'
pamil Jun 10, 2021
14bd63d
Fix the build after upgrade to Symfony 5.3 in GitHub Actions
pamil Jun 10, 2021
b9e59be
bug #12709 Fix the build after upgrade to Symfony 5.3 in GitHub Actio…
GSadee Jun 10, 2021
faee1a8
Merge branch '1.10'
GSadee Jun 10, 2021
3019ac6
Resolve upmerge conflict in themes.rst
GSadee Jun 14, 2021
242ef75
Merge branch '1.10'
GSadee Jun 14, 2021
454fb9d
Merge branch '1.9' into 1.10
GSadee Jun 14, 2021
08f1605
Merge branch '1.10'
GSadee Jun 14, 2021
a8d955f
Merge branch '1.9' into 1.10
GSadee Jun 14, 2021
109cb68
Merge branch '1.10'
GSadee Jun 14, 2021
a983c58
[POC] Add change of tax by address
arti0090 Jun 18, 2021
902eb60
Add cookbook with how to customize taxes
arti0090 Jun 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
-
package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 4
versioning-strategy: increase-if-necessary
43 changes: 24 additions & 19 deletions .github/workflows/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.3, 7.4]
symfony: [^4.4, ^5.2]
php: ["7.4", "8.0"]
symfony: ["^4.4", "^5.3"]

steps:
-
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-

Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:

-
name: Run PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon -l 1 src
run: vendor/bin/phpstan analyse
if: always() && steps.end-of-setup.outcome == 'success'

test-application-without-frontend:
Expand All @@ -119,14 +119,17 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.3, 7.4]
symfony: [^4.4, ^5.2]
mysql: [5.7, 8.0]
php: ["7.4", "8.0"]
symfony: ["^4.4", "^5.3"]
node: ["10.x"]
mysql: ["8.0"]

exclude:
include:
-
php: 7.3
mysql: 8.0
php: "8.0"
symfony: "^5.3"
node: "10.x"
mysql: "5.7"

env:
APP_ENV: test_cached
Expand Down Expand Up @@ -174,7 +177,7 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-

Expand Down Expand Up @@ -252,15 +255,17 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.3, 7.4]
symfony: [^4.4, ^5.2]
node: [10.x]
mysql: [5.7, 8.0]
php: ["7.4", "8.0"]
symfony: ["^4.4", "^5.3"]
node: ["10.x"]
mysql: ["8.0"]

exclude:
include:
-
php: 7.3
mysql: 8.0
php: "8.0"
symfony: "^5.3"
node: "10.x"
mysql: "5.7"

env:
APP_ENV: test_cached
Expand Down Expand Up @@ -316,7 +321,7 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-

Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ on:
schedule:
-
cron: "0 1 * * 6" # Run at 1am every Saturday
workflow_dispatch: ~
workflow_dispatch: ~

jobs:
list:
runs-on: ubuntu-18.04

name: "Create a list of packages"

steps:
-
-
uses: actions/checkout@v2
-

-
name: "Provide the list"
id: create-list
run: echo "::set-output name=packages::$(find src/Sylius -mindepth 3 -maxdepth 3 -type f -name composer.json -exec dirname '{}' \; | sed -e 's/src\/Sylius\///g' | sort | jq --raw-input . | jq --slurp . | jq -c .)"
Expand All @@ -38,37 +38,37 @@ jobs:

test:
needs: list

runs-on: ubuntu-18.04

name: "${{ matrix.package }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}"

timeout-minutes: 10

strategy:
fail-fast: false
matrix:
php: [7.3, 7.4]
symfony: [^4.4, ^5.2]
php: ["7.4", "8.0"]
symfony: ["^4.4", "^5.3"]
package: "${{ fromJson(needs.list.outputs.packages) }}"

steps:
-
-
uses: actions/checkout@v2

-
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none

-
-
name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

-
-
name: Cache Composer
uses: actions/cache@v2
with:
Expand All @@ -78,26 +78,26 @@ jobs:
${{ runner.os }}-php-${{ matrix.php }}-package-${{ matrix.package }}-composer-
${{ runner.os }}-php-${{ matrix.php }}-package-

-
-
name: Restrict Symfony version
if: matrix.symfony != ''
run: |
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
composer config extra.symfony.require "${{ matrix.symfony }}"
working-directory: "src/Sylius/${{ matrix.package }}"

-
name: Validate composer.json
run: composer validate --ansi --strict
working-directory: "src/Sylius/${{ matrix.package }}"

-
name: Install dependencies
run: composer install --ansi --no-interaction
env:
COMPOSER_ROOT_VERSION: dev-master
working-directory: "src/Sylius/${{ matrix.package }}"

-
name: Test package
run: bin/test-package src/Sylius/${{ matrix.package }}
Expand All @@ -114,15 +114,15 @@ jobs:
timeout-minutes: 5

steps:
-
-
name: "Process data"
id: process-data
shell: bash
run: |
echo "::set-output name=branch::$(echo ${{ github.ref }} | sed 's/refs\/heads\///g' | sed 's/refs\/tags\///g')"
echo "::set-output name=sha::$(echo ${{ github.sha }} | cut -c 1-12)"

-
-
name: "Notify on Slack"
uses: edge/simple-slack-notify@master
env:
Expand Down
Loading