-
Notifications
You must be signed in to change notification settings - Fork 57
62 lines (54 loc) · 1.75 KB
/
run-tests.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
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
php-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.2, 8.3]
symfony: [6.x]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
include:
- symfony: ^5.3
php: 7.3
dependency-version: prefer-lowest
- symfony: ^5.3
php: 7.3
dependency-version: prefer-stable
- symfony: ^5.3
php: 7.4
dependency-version: prefer-stable
- symfony: ^5.3
php: 8.1
dependency-version: prefer-stable
- symfony: ^7
php: 8.2
dependency-version: prefer-lowest
- symfony: ^7
php: 8.2
dependency-version: prefer-stable
- symfony: ^7
php: 8.3
dependency-version: prefer-stable
name: PHP${{ matrix.php }} Symfony${{ matrix.symfony }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
- name: Install dependencies
run: |
composer require "symfony/http-foundation:${{ matrix.symfony }}" "symfony/http-kernel:${{ matrix.symfony }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --with-all-dependencies
- name: Execute Unit Tests
run: vendor/bin/phpunit
- name: Check PSR-12 Codestyle
run: vendor/bin/phpcs --standard=psr12 --exclude=Generic.Files.LineLength src/
if: matrix.os == 'ubuntu-latest'