mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
33 lines
797 B
YAML
33 lines
797 B
YAML
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
|