-
Notifications
You must be signed in to change notification settings - Fork 33
84 lines (70 loc) · 1.93 KB
/
ci.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
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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2']
symfony: ['4.4.*', '5.4.*', '6.1.*', '6.2.*']
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: mbstring, intl
tools: composer:v2, flex
- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v1
- name: Run tests
run: composer run test
test-lowest:
name: Test Lowest
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: mbstring, intl
tools: composer:v2, flex
- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: make test-lowest
codestyle:
name: Code style
runs-on: ubuntu-latest
container: jakzal/phpqa:php8.1
steps:
- uses: actions/checkout@v2
- name: PHP CS Fixer (via jakzal/phpqa)
run: php-cs-fixer fix -vv --dry-run
static:
name: Static code analysis
runs-on: ubuntu-latest
container: jakzal/phpqa
steps:
- uses: actions/checkout@v2
- run: composer install
- name: PHPStan (via jakzal/phpqa)
run: phpstan analyze -c .phpstan.neon