From daf09831db2ffe1c4359c12bf6376dbf50d63a87 Mon Sep 17 00:00:00 2001 From: chadicus Date: Mon, 19 Dec 2022 14:54:56 -0500 Subject: [PATCH 1/4] Allow newer versions of PHP --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7170451..654dff3 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "sort-packages": true }, "require": { - "php": "^7.0" + "php": ">=7.0" }, "suggest": { "subjective-php/util-exceptions": "Offers utilty classes for working with exceptions." From 553f0acd3409c7e475c326e4337c058192aa46c5 Mon Sep 17 00:00:00 2001 From: chadicus Date: Mon, 19 Dec 2022 14:57:43 -0500 Subject: [PATCH 2/4] Add Github Actions for PHP builds --- .github/workflows/php.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..c76023f --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,29 @@ +name: PHP Composer + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-18.04 + strategy: + matrix: + php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + - name: Validate composer.json and composer.lock + run: composer validate + - name: Install dependencies + run: composer install --prefer-dist --no-progress + - name: Run PHPCS + run: composer run-script lint + - name: Run PHPUnit + run: composer run-script test From b131f658fec7035735d9be726f7e42b421cf9272 Mon Sep 17 00:00:00 2001 From: chadicus Date: Mon, 19 Dec 2022 14:58:23 -0500 Subject: [PATCH 3/4] Remove coveralls integration --- .coveralls.yml | 3 --- composer.json | 1 - 2 files changed, 4 deletions(-) delete mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 4eecff5..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1,3 +0,0 @@ -service_name: travis-ci -coverage_clover: clover.xml -json_path: coveralls-upload.json diff --git a/composer.json b/composer.json index 654dff3..a21e9fb 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,6 @@ "subjective-php/util-exceptions": "Offers utilty classes for working with exceptions." }, "require-dev": { - "php-coveralls/php-coveralls": "^2.1", "phpunit/phpunit": "^6.5", "squizlabs/php_codesniffer": "^3.2" }, From d428002cd3801c99dc4b1ae9fd86d926ab74e206 Mon Sep 17 00:00:00 2001 From: chadicus Date: Mon, 19 Dec 2022 14:58:44 -0500 Subject: [PATCH 4/4] Remove Travis-CI integration --- .travis.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eacd728..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: php -php: - - 7.0 - - 7.1 - - 7.2 - - nightly -env: - - PREFER_LOWEST="--prefer-lowest --prefer-stable" - - PREFER_LOWEST="" -matrix: - fast_finish: true - allow_failures: - - php: nightly -before_script: - - composer update $PREFER_LOWEST -script: - - ./vendor/bin/phpunit -after_success: ./vendor/bin/php-coveralls -v