-
-
Notifications
You must be signed in to change notification settings - Fork 232
77 lines (65 loc) · 2.38 KB
/
ci.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
push:
pull_request:
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
name: Coding Standards
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
tools: php-cs-fixer, cs2pr
- name: Run PHP-CS-Fixer
run: php-cs-fixer fix --dry-run --format checkstyle | cs2pr
test:
runs-on: ubuntu-latest
name: PHPUnit Tests
strategy:
fail-fast: false
matrix:
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
monolog: [ '2.*' ]
include:
- php: '7.4'
deps: lowest
deprecations: max[self]=0
- php: '8.1'
monolog: '3.*'
- php: '8.2'
monolog: '3.*'
- php: '8.3'
monolog: '3.*'
- php: '8.4'
deps: highest
monolog: '3.*'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: zend.exception_ignore_args=false
tools: flex
- name: Configure composer
if: "${{ matrix.deps == 'highest' }}"
run: composer config minimum-stability dev
- name: Require Monolog version
if: "${{ matrix.monolog != '' }}"
run: composer require --no-update monolog/monolog:${{ matrix.monolog }}
- name: Composer install
uses: ramsey/composer-install@v1
with:
dependency-versions: '${{ matrix.deps }}'
- name: Install PHPUnit dependencies
run: vendor/bin/simple-phpunit install
- name: Run tests
run: vendor/bin/simple-phpunit -v --coverage-text
env:
SYMFONY_DEPRECATIONS_HELPER: '${{ matrix.deprecations }}'