-
-
Notifications
You must be signed in to change notification settings - Fork 424
64 lines (55 loc) · 1.44 KB
/
Copy pathunit-tests.yml
File metadata and controls
64 lines (55 loc) · 1.44 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
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
unit-tests:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
env:
COMPOSER_NO_INTERACTION: 1
strategy:
matrix:
os: [ubuntu-24.04]
php: [8.5, 8.4, 8.3, 8.2]
symfony: ['*']
include:
- php: 8.2
symfony: ^5.4
os: ubuntu-latest
- php: 8.2
symfony: ^6
os: ubuntu-latest
- php: 8.2
symfony: ^7
os: ubuntu-latest
- php: 8.4
symfony: ^7
os: ubuntu-latest
- php: 8.4
symfony: ^7
os: windows-latest
name: Unit PHP${{ matrix.php }} Symfony${{ matrix.symfony }} ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
extensions: pdo_sqlite, zip
- name: Require specific Symfony version
if: matrix.symfony != '*'
run: composer require "symfony/var-dumper:${{ matrix.symfony }}" --no-interaction --no-update
- name: Install dependencies
env:
COMPOSER_ROOT_VERSION: dev-master
run: composer update --prefer-dist --no-progress
- name: Execute Unit Tests
run: vendor/bin/phpunit --testsuite=Unit