Update Composer development tooling dependencies (major) #937
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Continuous Integration" | |
concurrency: | |
group: "ci-${{ github.head_ref || github.run_id }}" | |
cancel-in-progress: true | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
env: | |
fail-fast: true | |
jobs: | |
tests-mysql: | |
name: "Integration Tests w/MySQL (PHP ${{ matrix.php-version }}, MySQL ${{ matrix.mysql-version }})" | |
runs-on: "ubuntu-22.04" | |
strategy: | |
matrix: | |
mysql-version: | |
- "8.0" | |
php-version: | |
- "8.2" | |
services: | |
mysql: | |
image: "mysql:${{ matrix.mysql-version }}" | |
options: >- | |
--health-cmd "mysqladmin ping --silent" | |
--health-interval=1s | |
--health-timeout=5s | |
--health-retries=90 | |
-e MYSQL_ALLOW_EMPTY_PASSWORD=yes | |
-e MYSQL_DATABASE=tests | |
-e MYSQL_INITDB_SKIP_TZINFO=yes | |
--entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password" | |
ports: | |
- "3306:3306" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
coverage: "xdebug" | |
ini-values: "zend.assertions=1" | |
- name: "Install dependencies" | |
uses: "ramsey/composer-install@v2" | |
- name: "Run tests" | |
run: "./vendor/bin/phpunit --colors --testsuite=integration --do-not-cache-result --group=MySQL" | |
tests-unit: | |
name: "Unit Tests (PHP ${{ matrix.php-version }}, dependencies ${{ matrix.composer-dependencies }})" | |
runs-on: "ubuntu-22.04" | |
strategy: | |
matrix: | |
php-version: | |
- "8.2" | |
composer-dependencies: | |
- "lowest" | |
- "locked" | |
- "highest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
coverage: "none" | |
ini-values: "zend.assertions=1" | |
- name: "Install dependencies" | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.composer-dependencies }}" | |
- name: "Run unit tests" | |
run: "./vendor/bin/phpunit --colors --testsuite=unit --do-not-cache-result" |