Skip to content

Commit

Permalink
Try dependency matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
AydinHassan committed Jan 19, 2024
1 parent 3b58906 commit 9b2db0b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ on:

env:
SHOPWARE_TOOL_CACHE_PHPSTAN: ${{ github.workspace }}/var/phpstan
DEPENDENCIES_WITH_COMMERCIAL: |-
[
{"name": "SwagCommercial", "repo": "https://shopware:[email protected]/shopware/6/product/commercial.git"},
{"name": "SwagCmsExtensions", "repo": "https://shopware:[email protected]/shopware/6/services/cms-extensions.git"}
]
DEPENDENCIES_WITHOUT_COMMERCIAL: |-
[
{"name": "SwagCmsExtensions", "repo": "https://shopware:[email protected]/shopware/6/services/cms-extensions.git"}
]
jobs:
cs:
if: github.event_name != 'schedule'
Expand All @@ -40,16 +49,14 @@ jobs:
matrix:
phpVersion: [ 8.2, 8.3 ]
mysqlVersion: ["mysql:8.0", "mariadb:10.11"]
dependencies: [ $DEPENDENCIES_WITH_COMMERCIAL, $DEPENDENCIES_WITHOUT_COMMERCIAL ]
with:
uploadCoverage: true
extensionName: SwagPayPal
shopwareVersion: ${{ matrix.shopware-version }}
phpVersion: ${{ matrix.phpVersion }}
mysqlVersion: ${{ matrix.mysqlVersion }}
dependencies: |-
[
{"name": "SwagCmsExtensions", "repo": "https://shopware:[email protected]/shopware/6/services/cms-extensions.git"}
]
dependencies: ${{ matrix.dependencies }}
secrets:
env: |-
CMS_TOKEN=${{ secrets.CMS_GITLAB_TOKEN }}
Expand Down

0 comments on commit 9b2db0b

Please sign in to comment.