Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 44 additions & 15 deletions .github/workflows/automated_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,66 @@ permissions:
contents: read

jobs:
phpunit:
composer:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- php-version: '7.1'
symfony-version: '3.4.*'
phpunit-version: '7.5.20'
- php-version: '7.4'
symfony-version: '4.0.*'
phpunit-version: '9.5.28'
lock-version: '3.4'
- php-version: '7.4'
lock-version: '4.4'
- php-version: '8.0'
symfony-version: '5.0.*'
phpunit-version: '9.5.28'
lock-version: '5.0'
- php-version: '8.1'
symfony-version: '6.0.*'
phpunit-version: '9.5.28'
- php-version: '8.1'
symfony-version: '^6.2'
phpunit-version: '9.5.28'
lock-version: '6.0'
- php-version: '8.2'
lock-version: '7.0'

steps:
- uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
tools: composer

- uses: actions/checkout@v4

- name: Set versions
run: cp composer.${{ matrix.lock-version }}.lock composer.lock

- name: Validate composer.json and composer.lock
run: composer validate --strict

phpunit:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- php-version: '7.4'
lock-version: '3.4'
- php-version: '7.4'
lock-version: '4.4'
- php-version: '8.0'
lock-version: '5.0'
- php-version: '8.1'
lock-version: '6.0'
- php-version: '8.2'
lock-version: '7.0'

steps:
- uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
tools: composer

- uses: actions/checkout@v4

- name: Set versions
run: composer run-script set_versions ${{ matrix.symfony-version }} ${{ matrix.phpunit-version }}
run: cp composer.${{ matrix.lock-version }}.lock composer.lock

- name: Install dependencies
uses: ramsey/composer-install@v3
Expand All @@ -54,10 +79,14 @@ jobs:
steps:
- uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"
php-version: 8.2
tools: composer

- uses: actions/checkout@v4

- name: Set versions
run: cp composer.6.0.lock composer.lock

- name: Install dependencies
uses: ramsey/composer-install@v3

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
/tools/
/vendor/
/.phpunit.result.cache
/compose.override.yaml
/composer.lock
/phpstan.neon
Loading