Repository navigation
43 lines (40 loc) · 1.4 KB
/
Copy pathphp.yml
File metadata and controls
43 lines (40 loc) · 1.4 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
name: PHP quality
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4', '8.5']
steps:
- uses: actions/checkout@v6
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, dom, xml, curl, fileinfo, pdo_sqlite
coverage: none
- run: composer validate --strict
- run: composer install --no-interaction --prefer-dist --no-plugins --no-scripts
- run: composer audit
- run: find src tests config -name '*.php' -print0 | xargs -0 -n1 php -l
- run: composer test -- --fail-on-risky --fail-on-warning
optional-integrations:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.5']
steps:
- uses: actions/checkout@v6
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, dom, xml, curl, fileinfo, pdo_sqlite
coverage: none
- name: Install optional components in the disposable CI checkout
run: composer require --dev 'illuminate/redis:^12.21' 'nyholm/psr7:^1.8' 'symfony/psr-http-message-bridge:^7.3' --no-interaction --no-plugins --no-scripts
- run: composer audit
- run: composer test -- --fail-on-risky --fail-on-warning