Skip to content

Commit 5a29108

Browse files
committed
ci: composer config; composer.lock in gitignore
1 parent 8fc4a69 commit 5a29108

4 files changed

Lines changed: 5 additions & 4567 deletions

File tree

.github/workflows/php.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ jobs:
2121
php-version: '8.2'
2222
coverage: xdebug
2323

24-
- name: Validate composer.json and composer.lock
24+
- name: Validate composer.json
2525
run: composer validate --no-check-publish
2626

2727
- name: Composer install
28-
run: composer install --no-progress
28+
run: |
29+
composer config platform.php 8.2
30+
composer install --no-progress
2931
3032
- name: Run PHP-CS-Fixer
3133
run: vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation --using-cache=no

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/composer.lock
12
/.settings
23
/.project
34
/.buildpath

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
"config": {
2828
"allow-plugins": {
2929
"phpstan/extension-installer": true
30-
},
31-
"platform": {
32-
"php": "8.2"
3330
}
3431
}
3532
}

0 commit comments

Comments
 (0)