match upstream but without C++ wrappers #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
php: | |
name: PHP Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: | |
- stable | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- uses: ./.github/actions/libextism | |
- name: Setup PHP env | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
extensions: ffi | |
tools: composer | |
env: | |
fail-fast: true | |
- name: Setup Composer | |
run: | | |
composer install | |
composer require --dev phpunit/phpunit ^10 | |
- name: Test PHP SDK | |
run: | | |
./vendor/bin/phpunit ./tests |