-
Notifications
You must be signed in to change notification settings - Fork 196
47 lines (37 loc) · 1.1 KB
/
php.yml
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
name: PHP
on:
- push
- pull_request
jobs:
build:
strategy:
max-parallel: 15
matrix:
operating-system: [ubuntu-latest, macOS-latest]
php-versions: ['8.1', '8.2', '8.3']
# TODO : enable tests on windows
#include:
# - operating-system: windows-latest
# php-versions: 8.1
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, dom, intl, iconv
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Install tools
run: ./scripts/install_tools.sh
shell: bash
- name: Check formatting
run: composer run-script lint
env:
PHP_CS_FIXER_IGNORE_ENV: 1
- name: Run test suite
run: composer run-script test