Skip to content

Blueprints v2 all-PHP Runner #125

Blueprints v2 all-PHP Runner

Blueprints v2 all-PHP Runner #125

Workflow file for this run

name: PHPUnit Tests
on:
push:
branches:
- trunk
pull_request:
jobs:
test:
name: PHP ${{ matrix.php }}
uses: ./.github/workflows/phpunit-tests-run.yml
permissions:
contents: read
secrets: inherit
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
phpunit-config: ${{ 'phpunit.xml.dist' }}
# test_wasm:
# name: PHP.wasm 8.2
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Set up PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: '8.0'
# tools: composer
# - name: Install Composer dependencies
# run: composer install --no-progress --no-suggest
# - name: Install Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '23'
# - name: Run tests
# run: |
# npm init -y
# npm install @php-wasm/cli
# PHP=8.2 node --experimental-wasm-jspi --experimental-wasm-stack-switching node_modules/@php-wasm/cli/php-wasm.js vendor/bin/phpunit