Skip to content

Commit

Permalink
chore: use new matrix generator
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Dec 27, 2024
1 parent 362e3b9 commit 025e07d
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,39 @@ on:
workflow_call:

jobs:
get-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Get Shopware Matrix
uses: tinect/github-shopware-matrix-generator@main
id: matrix
with:
versionConstraint: '~6.6.0'
allowEol: false
justMinMaxShopware: false
allowShopwareNext: true
allowShopwareRC: false

Test:
env:
PLUGIN_NAME: FroshPlatformThumbnailProcessor
needs: get-matrix
strategy:
fail-fast: false
matrix:
# don't forget to update the matrix for integration tests
version: [ "v6.6.4.0", "v6.6.3.1", "v6.6.2.0", "v6.6.1.1", "v6.6.0.3", "trunk" ]
php-version: [ "8.2", "8.3" ]
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- name: Setup Shopware
uses: shopware/setup-shopware@main
with:
shopware-version: ${{ matrix.version }}
php-version: ${{ matrix.php-version }}
shopware-version: ${{ matrix.shopware }}
php-version: ${{ matrix.php }}
php-extensions: pcov

- name: Info
Expand Down Expand Up @@ -61,18 +78,18 @@ jobs:
IntegrationTest:
env:
PLUGIN_NAME: FroshPlatformThumbnailProcessor
needs: get-matrix
strategy:
fail-fast: false
matrix:
version: [ "v6.6.4.0", "v6.6.3.1", "v6.6.2.0", "v6.6.1.1", "v6.6.0.3", "trunk" ]
php-version: [ "8.2", "8.3" ]
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- name: Setup Shopware
uses: shopware/setup-shopware@main
with:
shopware-version: ${{ matrix.version }}
php-version: ${{ matrix.php-version }}
shopware-version: ${{ matrix.shopware }}
php-version: ${{ matrix.php }}
php-extensions: pcov

- name: Info
Expand Down

0 comments on commit 025e07d

Please sign in to comment.