|
9 | 9 | workflow_call: |
10 | 10 |
|
11 | 11 | 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 | + |
12 | 30 | Test: |
13 | 31 | env: |
14 | 32 | PLUGIN_NAME: FroshPlatformThumbnailProcessor |
| 33 | + needs: get-matrix |
15 | 34 | strategy: |
16 | 35 | 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) }} |
21 | 37 | runs-on: ubuntu-latest |
22 | 38 | steps: |
23 | 39 | - name: Setup Shopware |
24 | 40 | uses: shopware/setup-shopware@main |
25 | 41 | with: |
26 | | - shopware-version: ${{ matrix.version }} |
27 | | - php-version: ${{ matrix.php-version }} |
| 42 | + shopware-version: ${{ matrix.shopware }} |
| 43 | + php-version: ${{ matrix.php }} |
28 | 44 | php-extensions: pcov |
29 | 45 |
|
30 | 46 | - name: Info |
@@ -61,18 +77,17 @@ jobs: |
61 | 77 | IntegrationTest: |
62 | 78 | env: |
63 | 79 | PLUGIN_NAME: FroshPlatformThumbnailProcessor |
| 80 | + needs: get-matrix |
64 | 81 | strategy: |
65 | 82 | 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) }} |
69 | 84 | runs-on: ubuntu-latest |
70 | 85 | steps: |
71 | 86 | - name: Setup Shopware |
72 | 87 | uses: shopware/setup-shopware@main |
73 | 88 | with: |
74 | | - shopware-version: ${{ matrix.version }} |
75 | | - php-version: ${{ matrix.php-version }} |
| 89 | + shopware-version: ${{ matrix.shopware }} |
| 90 | + php-version: ${{ matrix.php }} |
76 | 91 | php-extensions: pcov |
77 | 92 |
|
78 | 93 | - name: Info |
|
0 commit comments