Skip to content

Commit

Permalink
run tests in php 7.2 with lowest (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Feb 25, 2023
1 parent 17f79ae commit c64db58
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

concurrency:
group: tests-${{ github.head_ref || github.run_id }} # will be canceled on subsequent pushes in pull requests but not branches
cancel-in-progress: true

jobs:

phpunit:
Expand All @@ -20,54 +24,72 @@ jobs:
db-image: 'mysql:5.7'
reflector: "pdo-mysql"
mode: "recording"
composer-options: "--prefer-lowest"

- php-version: "7.2"
db-image: 'mysql:5.7'
reflector: "pdo-mysql"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: "7.3"
db-image: 'mysql:5.7'
reflector: "pdo-mysql"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: "7.4"
db-image: 'mysql:8.0'
reflector: "pdo-mysql"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: "8.0"
db-image: 'mysql:8.0'
reflector: "pdo-mysql"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: "8.0"
db-image: 'mysql:8.0'
reflector: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"

- php-version: "8.1"
db-image: 'mysql:8.0'
reflector: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: '8.1'
db-image: 'mariadb:latest'
reflector: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"

- php-version: "8.2"
db-image: 'mysql:8.0'
reflector: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: '8.2'
db-image: 'mariadb:latest'
reflector: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"

- php-version: "8.1"
db-image: 'mysql:8.0'
reflector: "pdo-mysql"
mode: "replay-and-recording"
composer-options: "--prefer-dist"

- php-version: "8.1"
db-image: 'mysql:8.0'
reflector: "pdo-mysql"
mode: "empty-recording"
composer-options: "--prefer-dist"
- php-version: "8.1"
db-image: 'mysql:8.0'
reflector: "pdo-mysql"
mode: "empty-replay-and-recording"
composer-options: "--prefer-dist"

env:
DBA_REFLECTOR: ${{ matrix.reflector }}
Expand Down Expand Up @@ -98,7 +120,7 @@ jobs:
- uses: "ramsey/composer-install@v2"
with:
# ignore php8.2 requirement error https://github.com/sebastianbergmann/phpunit/issues/5033
composer-options: "--prefer-dist --no-progress --ignore-platform-req=php+"
composer-options: "${{matrix.composer-options}} --no-progress --ignore-platform-req=php+"

- name: Install sqlftw/sqlftw (optional dependency)
run: composer require sqlftw/sqlftw --ignore-platform-req=php+
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": "^7.2 || ^8.0",
"composer-runtime-api": "^2.0",
"composer/semver": "^3.2",
"phpstan/phpstan": "^1.5.6"
"phpstan/phpstan": "^1.9.4"
},
"require-dev": {
"ext-mysqli": "*",
Expand Down

0 comments on commit c64db58

Please sign in to comment.