Update dependency phpstan/phpstan to v2 #4339
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | |
name: "Integration tests" | |
on: | |
pull_request: | |
push: | |
branches: | |
- "[0-9]+.[0-9]+.x" | |
- "renovate/*" | |
jobs: | |
postgres: | |
name: "Postgres" | |
runs-on: ${{ matrix.operating-system }} | |
services: | |
postgres: | |
# Docker Hub image | |
image: "postgres:${{ matrix.postgres-version }}" | |
# Provide the password for postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: eventstore | |
options: >- | |
--health-cmd "pg_isready" | |
ports: | |
- "5432:5432" | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.3" | |
operating-system: | |
- "ubuntu-latest" | |
postgres-version: | |
- "12.20" | |
- "13.16" | |
- "14.13" | |
- "15.8" | |
- "16.4" | |
- "17.0" | |
env: | |
DB_URL: 'pdo-pgsql://postgres:postgres@localhost:5432/eventstore?charset=utf8' | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "pcov" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
extensions: pdo_pgsql | |
- uses: ramsey/[email protected] | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: "Tests" | |
run: "vendor/bin/phpunit --testsuite=integration" | |
mariadb: | |
name: "mariadb" | |
runs-on: ${{ matrix.operating-system }} | |
services: | |
mariadb: | |
image: "mariadb:${{ matrix.mariadb-version }}" | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: "eventstore" | |
options: >- | |
--health-cmd "mariadb-admin ping --silent" | |
ports: | |
- "3306:3306" | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.3" | |
operating-system: | |
- "ubuntu-latest" | |
mariadb-version: | |
- "10.5" | |
- "10.6" | |
- "10.11" | |
- "11.1" | |
- "11.4" | |
env: | |
DB_URL: 'pdo-mysql://[email protected]:3306/eventstore?charset=utf8' | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "pcov" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
extensions: pdo_mysql | |
- uses: ramsey/[email protected] | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: "Tests" | |
run: "vendor/bin/phpunit --testsuite=integration" | |
mysql: | |
name: "mysql" | |
runs-on: ${{ matrix.operating-system }} | |
services: | |
mysql: | |
image: "mysql:${{ matrix.mysql-version }}" | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: "eventstore" | |
options: >- | |
--health-cmd "mysqladmin ping --silent" | |
ports: | |
- "3306:3306" | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.3" | |
operating-system: | |
- "ubuntu-latest" | |
mysql-version: | |
- "5.7" | |
- "8.0" | |
- "8.4" | |
- "9.0" | |
env: | |
DB_URL: 'pdo-mysql://[email protected]:3306/eventstore?charset=utf8' | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "pcov" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
extensions: pdo_mysql | |
- uses: ramsey/[email protected] | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: "Tests" | |
run: "vendor/bin/phpunit --testsuite=integration" | |
sqlite: | |
name: "Sqlite" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.3" | |
operating-system: | |
- "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "pcov" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
extensions: pdo_sqlite | |
- uses: ramsey/[email protected] | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: "Tests" | |
run: "vendor/bin/phpunit --testsuite=integration" |