From d9861038bcc3cb2f38c7153bdca7d5ab89597afa Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Sun, 3 Jul 2022 14:47:43 +0800 Subject: Update beberlei/assert for PHP 8 compatibility Run `composer update beberlei/assert` using composer 2.3.8 on PHP 8.1.7 Updating other packages without updating this fails with: ``` Your requirements could not be resolved to an installable set of packages. Problem 1 - beberlei/assert v3.2.2 requires php ^7 -> your php version (8.1.7) does not satisfy that requirement. - spomky-labs/otphp v10.0.1 requires beberlei/assert ^3.0 -> satisfiable by beberlei/assert[v3.2.2]. - spomky-labs/otphp is locked to version v10.0.1 and an update of this package was not requested. ``` --- vendor/beberlei/assert/.github/workflows/ci.yml | 64 +++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 vendor/beberlei/assert/.github/workflows/ci.yml (limited to 'vendor/beberlei/assert/.github/workflows') diff --git a/vendor/beberlei/assert/.github/workflows/ci.yml b/vendor/beberlei/assert/.github/workflows/ci.yml new file mode 100644 index 000000000..7003ff495 --- /dev/null +++ b/vendor/beberlei/assert/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +on: [push, pull_request] +name: CI +jobs: + tests: + name: Tests + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + tools: "cs2pr" + + - name: "Cache dependencies installed with composer" + uses: "actions/cache@v1" + with: + path: "~/.composer/cache" + key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}" + restore-keys: "php-${{ matrix.php-version }}-composer-locked-" + + - name: "Composer" + run: "composer update --prefer-stable" + + - name: "PHPUnit" + run: "php vendor/bin/phpunit" + +# lint: +# name: Lint +# runs-on: ubuntu-latest + +# steps: +# - name: Checkout +# uses: actions/checkout@v1 + +# - name: Setup PHP +# uses: shivammathur/setup-php@v2 +# with: +# php-version: 7.4 + +# - name: "Cache dependencies installed with composer" +# uses: "actions/cache@v1" +# with: +# path: "~/.composer/cache" +# key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}" +# restore-keys: "php-${{ matrix.php-version }}-composer-locked-" + +# - name: "Composer" +# run: "composer update --prefer-stable" + +# - name: "assert:cs-lint" +# run: "composer assert:cs-lint" + +# - name: "assert:sa-code" +# run: "composer assert:sa-code" + +# - name: "assert:sa-tests" +# run: "composer assert:sa-tests" -- cgit v1.2.3