-
Notifications
You must be signed in to change notification settings - Fork 127
32 lines (30 loc) · 869 Bytes
/
php-tests.yml
File metadata and controls
32 lines (30 loc) · 869 Bytes
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
name: PHP Tests
on:
pull_request:
push:
branches: [trunk]
jobs:
phpunit:
name: PHPUnit (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4', '8.5']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
coverage: none
- name: Install dependencies
run: |
if composer install --no-progress 2>&1; then
echo "Updating PHPUnit for best match with PHP ${{ matrix.php }}"
composer update -W --no-progress phpunit/phpunit
else
echo "Platform reqs failed, running composer update for dev dependencies"
composer update --no-progress
fi
- run: composer test-php