Skip to content

Commit 02ddcb2

Browse files
committed
Cleanup
1 parent bd05de8 commit 02ddcb2

File tree

1 file changed

+25
-39
lines changed

1 file changed

+25
-39
lines changed

.github/workflows/tests.yaml

Lines changed: 25 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,60 @@
1-
name: Continuous Integration
1+
name: CI
22

33
on:
4-
pull_request: null
4+
pull_request:
55
push:
66
branches:
77
- master
8-
- develop
98
- release/**
109

1110
permissions:
1211
contents: read
1312

1413
jobs:
1514
tests:
16-
name: Tests
15+
name: Tests (${{ matrix.os }}, ${{ matrix.php.version }}, ${{ matrix.dependencies }})
1716
runs-on: ubuntu-latest
1817
env:
1918
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
2019
strategy:
2120
fail-fast: false
2221
matrix:
2322
php:
24-
- '7.2'
25-
- '7.3'
26-
- '7.4'
27-
- '8.0'
28-
- '8.1'
29-
- '8.2'
30-
- '8.3'
31-
- '8.4'
23+
- { version: '7.2', phpunit: '^8.5.40' }
24+
- { version: '7.3', phpunit: '^9.6.21' }
25+
- { version: '7.4', phpunit: '^9.6.21' }
26+
- { version: '8.0', phpunit: '^9.6.21' }
27+
- { version: '8.1', phpunit: '^9.6.21' }
28+
- { version: '8.2', phpunit: '^9.6.21' }
29+
- { version: '8.3', phpunit: '^9.6.21' }
30+
- { version: '8.4', phpunit: '^9.6.21' }
3231
symfony-version:
3332
- 4.4.*
3433
- 5.*
3534
- 6.*
3635
- 7.*
3736
dependencies:
37+
- lowest
3838
- highest
3939
exclude:
40-
- php: '7.2'
40+
- php.version: '7.2'
4141
symfony-version: 6.*
42-
- php: '7.3'
42+
- php.version: '7.3'
4343
symfony-version: 6.*
44-
- php: '7.4'
44+
- php.version: '7.4'
4545
symfony-version: 6.*
46-
- php: '7.2'
46+
- php.version: '7.2'
4747
symfony-version: 7.*
48-
- php: '7.3'
48+
- php.version: '7.3'
4949
symfony-version: 7.*
50-
- php: '7.4'
50+
- php.version: '7.4'
5151
symfony-version: 7.*
52-
- php: '8.0'
52+
- php.version: '8.0'
5353
symfony-version: 7.*
54-
- php: '8.1'
54+
- php.version: '8.1'
5555
symfony-version: 7.*
56-
- php: '8.4'
56+
- php.version: '8.4'
5757
symfony-version: 4.4.*
58-
include:
59-
- php: '7.2'
60-
symfony-version: 4.4.*
61-
dependencies: lowest
62-
- php: '7.2'
63-
symfony-version: 5.*
64-
dependencies: lowest
65-
- php: '8.0'
66-
symfony-version: 6.*
67-
dependencies: lowest
68-
- php: '8.2'
69-
symfony-version: 7.*
70-
dependencies: lowest
7158

7259
steps:
7360
- name: Checkout
@@ -78,21 +65,20 @@ jobs:
7865
- name: Setup PHP
7966
uses: shivammathur/setup-php@v2
8067
with:
81-
php-version: ${{ matrix.php }}
68+
php-version: ${{ matrix.php.version }}
8269
coverage: pcov
8370
tools: flex
8471

8572
- name: Setup Problem Matchers for PHPUnit
8673
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
8774

88-
- name: Update PHPUnit
89-
run: composer require --dev phpunit/phpunit ^9.5 --no-update
90-
if: matrix.php == '8.0' && matrix.dependencies == 'lowest'
91-
9275
# These dependencies are not used running the tests but can cause deprecation warnings so we remove them before running the tests
9376
- name: Remove unused dependencies
9477
run: composer remove vimeo/psalm phpstan/phpstan friendsofphp/php-cs-fixer --dev --no-interaction --no-update
9578

79+
- name: Set phpunit/phpunit version constraint
80+
run: composer require phpunit/phpunit:'${{ matrix.php.phpunit }}' --dev --no-interaction --no-update
81+
9682
- name: Install dependencies
9783
uses: ramsey/composer-install@v3
9884
with:

0 commit comments

Comments
 (0)