Skip to content

Commit

Permalink
Add test matrix for Contao versions
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Nov 26, 2024
1 parent 3019080 commit 0d59759
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ jobs:
uses: 'terminal42/contao-build-tools/.github/workflows/build-tools.yml@main'

tests:
name: Unit tests
name: Unit tests (PHP ${{ matrix.php }} / Contao ${{ matrix.contao }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
php: [ '8.1', '8.2', '8.3', '8.4' ]
contao: [ '4.13', '5.3', '5.4' ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -27,6 +28,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Require Contao version for tests
run: composer require contao/core-bundle:${{ matrix.contao }}.* --dev --no-update

# Remove this once https://github.com/contao/contao/pull/7751 is merged
- name: Require TestCase version for tests
run: composer require contao/test-case:${{ matrix.contao }}.* --dev --no-update

- name: Install the dependencies
run: |
composer install --no-interaction --no-progress --no-plugins
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
},
"require-dev": {
"contao/manager-plugin": "^2.0",
"contao/newsletter-bundle": "^5.0",
"contao/test-case": "^5.3",
"contao/newsletter-bundle": "^4.13 || ^5.0",
"contao/test-case": "^4.13 || ^5.3",
"league/flysystem-memory": "^3.25",
"phpunit/phpunit": "^9.6",
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0",
Expand Down

0 comments on commit 0d59759

Please sign in to comment.