-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.39 KB
/
unit-tests.yml
File metadata and controls
52 lines (41 loc) · 1.39 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
name: Unit tests
on: [ push, pull_request ]
jobs:
phpunit:
name: "Unit tests"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
php: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
symfony: [ '^6.4', '^7.3', '^8.0' ]
exclude:
- php: '8.1'
symfony: '^7.3'
- php: '8.1'
symfony: '^8.0'
- php: '8.2'
symfony: '^8.0'
- php: '8.3'
symfony: '^8.0'
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
- name: Update compatible amphp/http-client version
if: ${{ matrix.symfony == '^8.0' }}
run: |
composer require amphp/http-client:"^5.3" --dev --no-update
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Override symfony version
run: |
composer require symfony/http-client:"${{ matrix.symfony }}" --dev --no-update
composer update symfony/http-client --prefer-dist --no-progress
composer require symfony/process:"${{ matrix.symfony }}" --dev --no-update
composer update symfony/process --prefer-dist --no-progress
- name: Run PHPUnit
run: composer test