-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (44 loc) · 1.26 KB
/
phpunit-tests.yml
File metadata and controls
48 lines (44 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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