Skip to content

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
av3 committed Sep 10, 2024
1 parent dbeeee8 commit c3d181c
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 7 deletions.
66 changes: 62 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:
vendor/bin/contao-console lint:twig contao/templates
vendor/bin/contao-console lint:yaml config
phpunit:
name: PHP ${{ matrix.php }}
phpunit_c51:
name: PHP ${{ matrix.php }} Contao 5.1
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -96,7 +96,65 @@ jobs:
uses: actions/checkout@v4

- name: Install the dependencies
run: composer install --no-interaction --no-progress
run: |
composer require contao/core-bundle "5.1.*"
composer install --no-interaction --no-progress
- name: Run the unit tests
run: vendor/bin/phpunit --colors=always

phpunit_c52:
name: PHP ${{ matrix.php }} Contao 5.2
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2, 8.3 ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, fileinfo, filter, gd, hash, intl, json, mbstring, mysqli, pcre, pdo_mysql, zlib
coverage: xdebug
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout
uses: actions/checkout@v4

- name: Install the dependencies
run: |
composer require contao/core-bundle "5.2.*"
composer install --no-interaction --no-progress
- name: Run the unit tests
run: vendor/bin/phpunit --colors=always

phpunit_c53:
name: PHP ${{ matrix.php }} Contao 5.3
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2, 8.3 ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, fileinfo, filter, gd, hash, intl, json, mbstring, mysqli, pcre, pdo_mysql, zlib
coverage: xdebug
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout
uses: actions/checkout@v4

- name: Install the dependencies
run: |
composer require contao/core-bundle "5.3.*"
composer install --no-interaction --no-progress
- name: Run the unit tests
run: vendor/bin/phpunit --colors=always
Expand Down Expand Up @@ -151,7 +209,7 @@ jobs:

- name: Install the dependencies
run: |
composer require contao/core-bundle "^4.13"
composer require contao/core-bundle "5.4.*"
composer install --no-interaction --no-progress
- name: Run the unit tests
Expand Down
3 changes: 0 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ parameters:
- Contao\Form
- Contao\Widget

ignoreErrors:
- '#Constant VERSION not found.#'

excludePaths:
- %currentWorkingDirectory%/src/Resources/*

0 comments on commit c3d181c

Please sign in to comment.