-
Notifications
You must be signed in to change notification settings - Fork 1
101 lines (80 loc) · 2.39 KB
/
Copy pathci-php.yml
File metadata and controls
101 lines (80 loc) · 2.39 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Tests
on:
push:
pull_request:
jobs:
code-style:
runs-on: ubuntu-latest
name: Code Style (PHP CS Fixer)
steps:
- uses: actions/checkout@v7
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- name: Configure Composer
run: composer config --global policy.advisories.block false
- name: Install dependencies
run: composer update --no-interaction --prefer-dist
- name: Check code style
run: composer cs-check
phpstan:
runs-on: ubuntu-latest
name: PHPStan (level 8)
steps:
- uses: actions/checkout@v7
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- name: Configure Composer
run: composer config --global policy.advisories.block false
- name: Install dependencies
run: composer update --no-interaction --prefer-dist
- name: Run PHPStan
run: composer phpstan
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.1'
symfony: '^5.4'
- php: '8.1'
symfony: '^6.4'
- php: '8.2'
symfony: '^6.4'
- php: '8.2'
symfony: '^7.4'
- php: '8.3'
symfony: '^7.4'
- php: '8.4'
symfony: '^7.4'
- php: '8.4'
symfony: '^8.0'
name: PHP ${{ matrix.php }} / Symfony ${{ matrix.symfony }}
steps:
- uses: actions/checkout@v7
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: soap
coverage: none
- name: Configure Composer
run: composer config --global policy.advisories.block false
- name: Install dependencies
run: |
composer require \
"symfony/framework-bundle:${{ matrix.symfony }}" \
"symfony/yaml:${{ matrix.symfony }}" \
"symfony/http-client:${{ matrix.symfony }}" \
--dev --no-update --no-interaction
composer update --no-interaction --prefer-dist
- name: Run unit tests
run: vendor/bin/phpunit --testsuite=unit
- name: Run integration tests
run: vendor/bin/phpunit --testsuite=integration