-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·73 lines (64 loc) · 2 KB
/
ci.yml
File metadata and controls
executable file
·73 lines (64 loc) · 2 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
name: CI
on: [push, pull_request]
jobs:
run:
runs-on: ${{ matrix.operating-system }}
name: PHP ${{ matrix.php-versions }} and Symfony ${{ matrix.symfony }} Test on ${{ matrix.operating-system }}
strategy:
matrix:
include:
-
operating-system: [ubuntu-latest]
php-versions: 7.2
symfony: '4.4.*'
-
operating-system: [ubuntu-latest]
php-versions: 7.2
symfony: '5.3.*'
-
operating-system: [ubuntu-latest]
php-versions: 7.3
symfony: '5.3.*'
-
operating-system: [ ubuntu-latest ]
php-versions: 7.4
symfony: '5.3.*'
-
operating-system: [ ubuntu-latest ]
php-versions: 8.0
symfony: '^5.3'
-
operating-system: [ ubuntu-latest ]
php-versions: 8.1
symfony: '^5.3'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: flex
- name: Set the Symfony version
id: step_one
run: |
echo "SYMFONY_REQUIRE=${{ matrix.symfony }}" >> $GITHUB_ENV
- name: Install dependencies
uses: php-actions/composer@v6
with:
ssh_key: ${{ secrets.ssh_key }}
ssh_key_pub: ${{ secrets.ssh_key_pub }}
php_version: ${{ matrix.php-versions }}
command: update
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml.dist
args: --coverage-text
- name: PHPStan
uses: php-actions/phpstan@v3
with:
configuration: phpstan.neon.dist
#- name: Auto format check # php-cs-fixer
# run: composer auto-format