Skip to content

Commit cc2c415

Browse files
committed
chore(release): 1.1.0
1 parent ccc5496 commit cc2c415

15 files changed

Lines changed: 929 additions & 446 deletions

.github/workflows/lint.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
php: [ '8.2', '8.3' ]
10+
php: [ '8.4', '8.5' ]
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
@@ -23,7 +23,7 @@ jobs:
2323
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
2424

2525
- name: Cache dependencies installed with composer
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
with:
2828
path: ${{ env.COMPOSER_CACHE_DIR }}
2929
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
@@ -37,4 +37,4 @@ jobs:
3737
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
3838

3939
- name: Run code quality analysis
40-
run: make lint
40+
run: make lint

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
php: [ '8.2', '8.3' ]
10+
php: [ '8.4', '8.5' ]
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
@@ -23,7 +23,7 @@ jobs:
2323
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
2424

2525
- name: Cache dependencies installed with composer
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
with:
2828
path: ${{ env.COMPOSER_CACHE_DIR }}
2929
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
@@ -37,4 +37,4 @@ jobs:
3737
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
3838

3939
- name: Run tests
40-
run: make test
40+
run: make test

Makefile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,11 @@ help: ## affiche cet aide
88
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
99

1010
.PHONY: lint
11-
lint: vendor/autoload.php ## affiche les erreurs de formatage de code
11+
lint: ## affiche les erreurs de formatage de code
1212
php vendor/bin/ecs
1313
php vendor/bin/phpstan
14+
php vendor/bin/rector --dry-run
1415

1516
.PHONY: test
16-
test: vendor/autoload.php ## lance les tests
17+
test: ## lance les tests
1718
php vendor/bin/phpunit
18-
19-
.PHONY: lint-fix
20-
lint-fix: vendor/autoload.php ## corrige les erreurs de formatage de code
21-
php vendor/bin/ecs --fix
22-
23-
vendor/autoload.php: composer.lock # installe les dépendances PHP
24-
composer update
25-
composer dump-autoload

composer.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,26 @@
2222
"authors": [
2323
{
2424
"name": "bernard-ng",
25-
"email": "ngandubernard@gmail.com"
25+
"email": "bernard@devscast.tech"
2626
}
2727
],
2828
"minimum-stability": "stable",
29-
"require-dev": {
30-
"phpstan/phpstan": "^1.10",
31-
"symplify/easy-coding-standard": "^12.0",
32-
"phpunit/phpunit": "^10.4"
33-
},
3429
"require": {
35-
"php": ">=8.2",
30+
"php": ">=8.4",
3631
"webmozart/assert": "^1.11"
3732
},
3833
"repositories": [
3934
{
4035
"type": "vcs",
4136
"url": "https://github.com/devscast/maxicash"
4237
}
43-
]
38+
],
39+
"require-dev": {
40+
"symfony/var-dumper": "^7.0|^8.0",
41+
"rector/rector": "^2.3",
42+
"phpstan/phpstan": "^2.1",
43+
"phpstan/phpstan-phpunit": "^2.0",
44+
"phpunit/phpunit": "^13.0",
45+
"symplify/easy-coding-standard": "^13.0"
46+
}
4447
}

0 commit comments

Comments
 (0)