Skip to content

Commit

Permalink
expand support for php 8.2 and 8.3 (#19)
Browse files Browse the repository at this point in the history
* expand support for php 8.2 and 8.3

* correct composer.json to allow PHP versions up to 8.3

* correct composer.json to allow PHP versions up to 8.3
  • Loading branch information
courtney-miles authored Aug 26, 2024
1 parent 3b0fcdd commit 2f460dc
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.4', '8.0', '8.1']
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
mysql-version: ['5.7', '8.0']
composer-flag:
- '--prefer-dist'
Expand Down Expand Up @@ -61,8 +61,9 @@ jobs:
- name: Update Composer Dev dependencies
run: composer update phpunit/phpunit --prefer-dist --no-interaction --with-dependencies

# - name: Run Code Style Check for PHP ${{ matrix.php-version }}
# run: composer run-script style-check
- name: Run Code Style Check for PHP ${{ matrix.php-version }}
run: composer run-script style-check
if: matrix.php-version == '8.2' && matrix.composer-flag == '--prefer-dist'

- name: Run tests for PHP ${{ matrix.php-version }}
run: composer run-script test
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1-cli
FROM php:8.2-cli

# system dependecies
RUN apt-get update && apt-get install -y \
Expand All @@ -19,4 +19,4 @@ RUN curl -sS https://getcomposer.org/installer | php \
&& apt-get install git unzip -y
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV XDEBUG_MODE=coverage
WORKDIR /src
WORKDIR /src
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php" : "7.2 - 8.1",
"php" : "7.2 - 8.3",
"ext-pdo" : "*",
"ext-mysqlnd" : "*",
"milesasylum/schnoop-schema": "^0.3.1"
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "2"
services:
schnoop:
build: .
Expand Down
2 changes: 1 addition & 1 deletion docker-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -o errexit

docker-compose run --rm schnoop composer test
docker compose run --rm schnoop composer test
2 changes: 1 addition & 1 deletion docker-style-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -o errexit

docker-compose run --rm schnoop composer style-check
docker compose run --rm schnoop composer style-check
2 changes: 1 addition & 1 deletion docker-style-fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -o errexit

docker-compose run --rm schnoop composer style-fix
docker compose run --rm schnoop composer style-fix
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ini name="display_errors" value="On"/>
<ini name="error_reporting" value="E_ALL"/>
<env name="TESTS_SCHNOOP_DBADAPTER_MYSQL_ENABLED" value="true"/>
<env name="TESTS_SCHNOOP_DBADAPTER_MYSQL_HOST" value="mysql"/>
<env name="TESTS_SCHNOOP_DBADAPTER_MYSQL_HOST" value="172.19.0.2"/>
<env name="TESTS_SCHNOOP_DBADAPTER_MYSQL_USERNAME" value="root"/>
<env name="TESTS_SCHNOOP_DBADAPTER_MYSQL_PASSWORD" value=""/>
<env name="TESTS_SCHNOOP_DBADAPTER_MYSQL_PORT" value="3306"/>
Expand Down

0 comments on commit 2f460dc

Please sign in to comment.