-
Notifications
You must be signed in to change notification settings - Fork 56
89 lines (76 loc) · 2.28 KB
/
qa.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
78
79
80
81
82
83
84
85
86
87
88
89
name: Quality and Assurance
on:
push:
pull_request:
jobs:
qa:
name: Quality
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions:
- 8.2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, extensions and composer with shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, ctype, intl, dom, filter
env:
update: true
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --verbose --diff
test:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions:
- 8.1
- 8.2
- 8.3
symfony-versions:
- 5.4.*
- 6.3.*
- 6.4.*
- 7.0.*
dependencies:
- ''
include:
- php-versions: '8.1'
symfony-versions: '5.4.*'
dependencies: 'lowest'
exclude:
- php-versions: '8.1'
symfony-versions: '7.0.*'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, extensions and composer with shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, dom, filter, gd, json
tools: flex
env:
update: true
- name: Install Composer
if: "matrix.dependencies == ''"
run: composer update --no-progress --ansi --prefer-stable
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-versions }}
- name: Install Lowest Composer dependencies
if: "matrix.dependencies == 'lowest'"
run: composer update --no-progress --ansi --prefer-stable --prefer-lowest
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-versions }}
- name: Validate composer
run: composer validate --strict --no-check-lock
- name: Execute unit tests
run: ./vendor/bin/simple-phpunit