Skip to content

Commit d7041e2

Browse files
author
Renan de Lima
authored
Merge pull request #33 from acsiomatic/dep-compat-policy
Update to maintained dependencies
2 parents 2e3a2cf + 47ff4f7 commit d7041e2

35 files changed

Lines changed: 360 additions & 499 deletions

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@ trim_trailing_whitespace = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
13-
14-
[Makefile]
15-
indent_style = tab

.github/workflows/composer-normalizer.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ on:
1313

1414
jobs:
1515

16-
rector:
16+
composer-normalizer:
1717

1818
name: Composer Normalizer
1919
runs-on: ubuntu-latest
2020

2121
steps:
2222

2323
- name: Checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525

2626
- name: Setup tools
2727
uses: shivammathur/setup-php@v2
2828
with:
29-
php-version: 8.1
29+
php-version: 8.2
3030
tools: composer-normalize
3131
coverage: none
3232

.github/workflows/php-cs-fixer.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,23 @@ jobs:
2121
steps:
2222

2323
- name: Checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525

2626
- name: Setup tools
2727
uses: shivammathur/setup-php@v2
2828
with:
29-
php-version: 8.1
29+
php-version: 8.2
3030
tools: cs2pr
3131
coverage: none
3232

3333
- name: Install Composer dependencies
3434
uses: ramsey/composer-install@v2
3535

36-
- name: Create var/ directory
37-
run: mkdir var
38-
3936
- name: Cache PHP Coding Standards
40-
uses: actions/cache@v2
37+
uses: actions/cache@v3
4138
with:
4239
path: var/.php_cs.cache
4340
key: php-cs-fixer-${{ github.sha }}
44-
restore-keys: php-cs-fixer-
4541

4642
- name: Run PHP Coding Standards
4743
run: vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr

.github/workflows/phpstan.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,23 @@ jobs:
2121
steps:
2222

2323
- name: Checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525

2626
- name: Setup tools
2727
uses: shivammathur/setup-php@v2
2828
with:
29-
php-version: 8.1
29+
php-version: 8.2
3030
tools: cs2pr
3131
coverage: none
3232

3333
- name: Install Composer dependencies
3434
uses: ramsey/composer-install@v2
3535

3636
- name: Cache PHPStan
37-
uses: actions/cache@v2
37+
uses: actions/cache@v3
3838
with:
3939
path: var/phpstan/
4040
key: phpstan-${{ github.sha }}
41-
restore-keys: phpstan-
4241

4342
- name: Run PHP Static Analysis
4443
run: vendor/bin/phpstan analyse --no-progress --error-format=checkstyle | cs2pr

.github/workflows/phpunit.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,19 @@ jobs:
1717

1818
name: DD ${{ matrix.dd }} SF ${{ matrix.sf }} PHP ${{ matrix.php }}
1919
runs-on: ubuntu-latest
20+
continue-on-error: ${{ matrix.is_next }}
21+
2022
strategy:
21-
fail-fast: false
2223
matrix:
2324
include:
24-
- { dd: '4.0.*', sf: '4.0.*', php: '7.2' }
25-
- { dd: '^4.0', sf: '^4.0', php: '7.2' }
26-
- { dd: '4.0.*', sf: '5.0.*', php: '7.3' }
27-
- { dd: '^4.0', sf: '^5.0', php: '7.3' }
28-
- { dd: '5.0.*', sf: '5.0.*', php: '7.4' }
29-
- { dd: '^5.0', sf: '^5.0', php: '7.4' }
30-
- { dd: '5.0.*', sf: '6.0.*', php: '8.0' }
31-
- { dd: '^5.0', sf: '^6.0', php: '8.0' }
32-
- { dd: '5.0.*', sf: '6.0.*', php: '8.1' }
33-
- { dd: '^5.0', sf: '^6.0', php: '8.1' }
34-
- { dd: '6.0.*', sf: '6.0.*', php: '8.1' }
35-
- { dd: '^6.0', sf: '^6.0', php: '8.1' }
25+
- { dd: '6.1.*', sf: '5.4.*', php: '8.1', is_next: false }
26+
- { dd: '6.1.*', sf: '6.4.*', php: '8.2', is_next: false }
27+
- { dd: '6.1.*', sf: '7.0.*', php: '8.3', is_next: false }
3628

3729
steps:
3830

3931
- name: Checkout
40-
uses: actions/checkout@v2
32+
uses: actions/checkout@v4
4133

4234
- name: Setup PHP
4335
uses: shivammathur/setup-php@v2
@@ -46,10 +38,10 @@ jobs:
4638
coverage: none
4739

4840
- name: Require specific dependencies versions
49-
run: composer require matomo/device-detector:${{ matrix.dd }} symfony/framework-bundle:${{ matrix.sf }}
41+
run: composer require -w matomo/device-detector:${{ matrix.dd }} symfony/framework-bundle:${{ matrix.sf }}
5042

5143
- name: Install Composer dependencies
5244
uses: ramsey/composer-install@v2
5345

5446
- name: Run PHPUnit
55-
run: vendor/bin/phpunit --testdox
47+
run: vendor/bin/phpunit

.github/workflows/rector.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
steps:
2222

2323
- name: Checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525

2626
- name: Setup tools
2727
uses: shivammathur/setup-php@v2
2828
with:
29-
php-version: 8.1
29+
php-version: 8.2
3030
coverage: none
3131

3232
- name: Install Composer dependencies

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/.php-cs-fixer.php
2-
/Makefile
32
/composer.lock
43
/phpstan.neon
54
/phpunit.xml

.php-cs-fixer.dist.php

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
4-
->in([
5-
__DIR__.'/src',
6-
__DIR__.'/tests',
7-
]);
8-
93
return (new PhpCsFixer\Config())
10-
->setCacheFile(__DIR__.'/var/.php_cs.cache')
4+
->setCacheFile(__DIR__ . '/var/.php_cs.cache')
115
->setRiskyAllowed(true)
126
->setRules([
13-
'@Symfony' => true,
14-
'@Symfony:risky' => true,
15-
'method_chaining_indentation' => true,
16-
'ordered_class_elements' => true,
17-
'php_unit_test_case_static_method_calls' => true,
18-
'static_lambda' => true,
19-
'yoda_style' => false,
7+
'@PER-CS' => true,
8+
'@PER-CS:risky' => true,
9+
'no_unused_imports' => true,
2010
])
21-
->setFinder($finder);
11+
->setFinder(PhpCsFixer\Finder::create()->in([
12+
__DIR__ . '/src',
13+
__DIR__ . '/tests',
14+
]));

Makefile

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)