Skip to content

Commit 773f383

Browse files
committed
chore: use new matrix generator
1 parent 28600e5 commit 773f383

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,42 @@ on:
99
workflow_call:
1010

1111
jobs:
12+
get-matrix:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
matrix: ${{ steps.matrix.outputs.matrix }}
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
20+
- name: Get Shopware Version
21+
id: shopware-constraint
22+
run: echo "shopware_constraint=$(cat composer.json | jq -r '.require."shopware/core"')" >> $GITHUB_OUTPUT
23+
24+
- name: Get Shopware Matrix
25+
uses: tinect/github-shopware-matrix-generator@main
26+
id: matrix
27+
with:
28+
versionConstraint: ${{ steps.shopware-constraint.outputs.shopware_constraint }}
29+
allowEol: false
30+
justMinMaxShopware: false
31+
allowShopwareNext: true
32+
allowShopwareRC: false
33+
1234
test:
1335
env:
1436
PLUGIN_NAME: FroshPlatformThumbnailProcessor
37+
needs: get-matrix
1538
strategy:
1639
fail-fast: false
17-
matrix:
18-
version: [ "v6.5.1.1", "v6.5.2.1", "v6.5.3.3", "v6.5.4.1", "v6.5.5.2", "v6.5.6.1", "v6.5.7.4", "v6.5.8.7", "6.5.x" ]
40+
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
1941
runs-on: ubuntu-latest
2042
steps:
2143
- name: Setup Shopware
2244
uses: shopware/setup-shopware@main
2345
with:
24-
shopware-version: ${{ matrix.version }}
25-
php-version: 8.2
46+
shopware-version: ${{ matrix.shopware }}
47+
php-version: ${{ matrix.php }}
2648
php-extensions: pcov
2749

2850
- name: Info

0 commit comments

Comments
 (0)