Skip to content

Commit

Permalink
chore: introduce global env for test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Jun 23, 2024
1 parent 2aa1089 commit f4a4fb5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ on:
pull_request:
workflow_call:

env:
SHOPWARE_VERSIONS: '["v6.6.3.1", "v6.6.2.0", "v6.6.1.1", "v6.6.0.3", "trunk"]'
PHP_VERSIONS: '["8.2", "8.3"]'

jobs:
Test:
env:
PLUGIN_NAME: FroshPlatformThumbnailProcessor
strategy:
fail-fast: false
matrix:
version: [ "v6.6.3.1", "v6.6.2.0", "v6.6.1.1", "v6.6.0.3", "trunk" ]
php-version: [ "8.2" ]
version: ${{ fromJSON(env.SHOPWARE_VERSIONS) }}
php-version: ${{ fromJSON(env.PHP_VERSIONS) }}
runs-on: ubuntu-latest
steps:
- name: Setup Shopware
Expand Down Expand Up @@ -63,8 +67,8 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ "v6.6.1.1", "v6.6.0.3", "trunk" ]
php-version: [ "8.2" ]
version: ${{ fromJSON(env.SHOPWARE_VERSIONS) }}
php-version: ${{ fromJSON(env.PHP_VERSIONS) }}
runs-on: ubuntu-latest
steps:
- name: Setup Shopware
Expand Down

0 comments on commit f4a4fb5

Please sign in to comment.