Skip to content

Commit c4e0d53

Browse files
authored
chore: use new matrix generator (#149)
1 parent 362e3b9 commit c4e0d53

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,38 @@ 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 Matrix
21+
uses: tinect/github-shopware-matrix-generator@main
22+
id: matrix
23+
with:
24+
versionConstraint: '~6.6.0'
25+
allowEol: false
26+
justMinMaxShopware: false
27+
allowShopwareNext: true
28+
allowShopwareRC: false
29+
1230
Test:
1331
env:
1432
PLUGIN_NAME: FroshPlatformThumbnailProcessor
33+
needs: get-matrix
1534
strategy:
1635
fail-fast: false
17-
matrix:
18-
# don't forget to update the matrix for integration tests
19-
version: [ "v6.6.4.0", "v6.6.3.1", "v6.6.2.0", "v6.6.1.1", "v6.6.0.3", "trunk" ]
20-
php-version: [ "8.2", "8.3" ]
36+
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
2137
runs-on: ubuntu-latest
2238
steps:
2339
- name: Setup Shopware
2440
uses: shopware/setup-shopware@main
2541
with:
26-
shopware-version: ${{ matrix.version }}
27-
php-version: ${{ matrix.php-version }}
42+
shopware-version: ${{ matrix.shopware }}
43+
php-version: ${{ matrix.php }}
2844
php-extensions: pcov
2945

3046
- name: Info
@@ -61,18 +77,17 @@ jobs:
6177
IntegrationTest:
6278
env:
6379
PLUGIN_NAME: FroshPlatformThumbnailProcessor
80+
needs: get-matrix
6481
strategy:
6582
fail-fast: false
66-
matrix:
67-
version: [ "v6.6.4.0", "v6.6.3.1", "v6.6.2.0", "v6.6.1.1", "v6.6.0.3", "trunk" ]
68-
php-version: [ "8.2", "8.3" ]
83+
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
6984
runs-on: ubuntu-latest
7085
steps:
7186
- name: Setup Shopware
7287
uses: shopware/setup-shopware@main
7388
with:
74-
shopware-version: ${{ matrix.version }}
75-
php-version: ${{ matrix.php-version }}
89+
shopware-version: ${{ matrix.shopware }}
90+
php-version: ${{ matrix.php }}
7691
php-extensions: pcov
7792

7893
- name: Info

0 commit comments

Comments
 (0)