-
Notifications
You must be signed in to change notification settings - Fork 231
68 lines (59 loc) · 1.8 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
name: CI
on: ['push', 'pull_request']
jobs:
cs:
runs-on: ubuntu-latest
name: Coding style
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: json, mbstring
tools: composer, php-cs-fixer:2.19
- name: Display tools versions
run: |
composer --version
php-cs-fixer --version
- name: Check PHP code
run: php-cs-fixer fix --dry-run --diff --ansi
phpunit:
name: PHPUnit (PHP ${{ matrix.php }} + ${{ matrix.symfony-version}})
runs-on: ubuntu-latest
timeout-minutes: 15
env:
SYMFONY_REQUIRE: "${{ matrix.symfony_require }}"
strategy:
matrix:
include:
- php: '7.4'
dependencies: 'lowest'
symfony_require: '3.4.*'
- php: '7.4'
dependencies: 'highest'
symfony_require: '4.4.*'
- php: '8.0'
dependencies: 'highest'
symfony_require: '4.4.*'
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
tools: pecl, composer
extensions: curl, json, mbstring, openssl
- name: Globally install symfony/flex
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex
- name: Install Composer dependencies (${{ matrix.dependencies }})
uses: ramsey/composer-install@v1
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --prefer-stable"
- name: Run unit tests
run: |
vendor/bin/phpunit