Skip to content

Commit

Permalink
chore: use matrix generator
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Dec 28, 2024
1 parent 69065bb commit 0ace50a
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,33 @@ jobs:
cs:
if: github.event_name != 'schedule'
uses: shopware/github-actions/.github/workflows/cs-fixer.yml@main
get-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get Shopware Version
id: shopware-constraint
run: echo "shopware_constraint=$(cat composer.json | jq -r '.require."shopware/core"')" >> $GITHUB_OUTPUT

- name: Get Shopware Matrix
uses: tinect/github-shopware-matrix-generator@main
id: matrix
with:
versionConstraint: ${{ steps.shopware-constraint.outputs.shopware_constraint }}
allowEol: false
justMinMaxShopware: false
allowShopwareNext: true
allowShopwareRC: false
phpstan:
name: PHPStan
needs: get-matrix
strategy:
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
uses: shopware/github-actions/.github/workflows/phpstan.yml@main
with:
extensionName: FroshTools
shopwareVersion: v6.6.0.0-rc1
extensionName: FroshTools
shopwareVersion: ${{ matrix.shopware }}

0 comments on commit 0ace50a

Please sign in to comment.