diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e4dfd4..3f5556d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,9 @@ jobs: fail-fast: false matrix: php: + - 8.2 + - 8.1 - 8.0 - - 7.4 - - 7.3 - - 7.2 - - 7.1 steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/release-validate.yml b/.github/workflows/release-validate.yml new file mode 100644 index 0000000..6f845a6 --- /dev/null +++ b/.github/workflows/release-validate.yml @@ -0,0 +1,32 @@ +name: Validate pecl package + +on: + push: + pull_request: + types: [opened, synchronize, reopened] + release: + types: [created] + +jobs: + test_package_valid: + name: Release validate on PHP ${{ matrix.php }} + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest ] + php: [ 8.0, 8.1, 8.2 ] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Sanity check package.xml and install ext-uv + run: | + bash validate-package.sh + for file in tests/*.phpt; do grep $(basename $file) package.xml >/dev/null || (echo "Missing $file from package.xml" ; exit 1); done diff --git a/package.xml b/package.xml index 9c3f1f1..9e44c66 100644 --- a/package.xml +++ b/package.xml @@ -1,146 +1,151 @@ - - uv - pecl.php.net - libuv wrapper - uv provides access to underlying libuv functions - - Bob Weinand - bwoebi - bobwei9@hotmail.com - yes - - 2019-05-01 - - - 0.2.4 - 0.2.4 - - - beta - beta - - PHP License - - - Fix Windows build - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7.0.0 - - - 1.4.0b1 - - - - uv - + + uv + pecl.php.net + libuv wrapper + uv provides access to underlying libuv functions + + Bob Weinand + bwoebi + bobwei9@hotmail.com + yes + + + Aaron Piotrowski + trowski + aaron@trowski.com + yes + + 2023-06-17 + + 0.3.0 + 0.3.0 + + + beta + beta + + PHP License + 0.3.0 release + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8.0.0 + + + 1.4.0 + + + + uv + diff --git a/validate-package.sh b/validate-package.sh new file mode 100644 index 0000000..95cb6ed --- /dev/null +++ b/validate-package.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +VALIDATE_OUTPUT=`pear package-validate` + +echo "VALIDATE_OUTPUT is $VALIDATE_OUTPUT" + +if [[ "$VALIDATE_OUTPUT" == *"Error"* ]]; then + echo "Package appears to contain an error" + exit 255 +fi + +echo "Package appears valid"