From 2b7aa301cbb82b208cc81c005dcd0e4019c16983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurucz=20Istv=C3=A1n?= Date: Tue, 24 Jan 2023 18:45:59 +0100 Subject: [PATCH 1/3] PHP 8.x support --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 7491d9e..6f9b538 100644 --- a/composer.json +++ b/composer.json @@ -11,12 +11,12 @@ } ], "require": { - "php": "^5.3.2 || ^7.0" + "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "4.*", - "satooshi/php-coveralls": "^1.0", - "squizlabs/php_codesniffer": "2.*" + "phpunit/phpunit": "~4.8", + "php-coveralls/php-coveralls": "~2.4", + "squizlabs/php_codesniffer": "~3.6" }, "scripts": { "phar:install-tools": [ From 5ca59d107ee8cb55f318cbbdce2926909c44239f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurucz=20Istv=C3=A1n?= Date: Tue, 24 Jan 2023 18:47:40 +0100 Subject: [PATCH 2/3] more testing --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index e53f263..c6bfcc1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,11 @@ branches: matrix: include: + - php: 8.2 + - php: 8.1 + - php: 8.0 + - php: 7.4 + - php: 7.3 - php: 7.2 - php: 7.1 - php: 7.0 From f5ea2608d99824f8ec06ecf9cddf0c271a6790f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurucz=20Istv=C3=A1n?= Date: Thu, 26 Jan 2023 15:19:50 +0100 Subject: [PATCH 3/3] Initial GitHub Actions support. --- .github/workflows/php.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/php.yml diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000..1ef7894 --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,39 @@ +name: PHP Composer + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Validate composer.json and composer.lock + run: composer validate --strict + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v3 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" + # Docs: https://getcomposer.org/doc/articles/scripts.md + + # - name: Run test suite + # run: composer run-script test