Skip to content

Commit fe5ee70

Browse files
authored
Merge pull request #12247 from greg0ire/composer-lint
Setup composer lint workflow
2 parents 0511a9f + 72ffb3b commit fe5ee70

File tree

2 files changed

+65
-26
lines changed

2 files changed

+65
-26
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Composer Lint"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*.x"
7+
paths:
8+
- ".github/workflows/composer-lint.yml"
9+
- "composer.json"
10+
push:
11+
branches:
12+
- "*.x"
13+
paths:
14+
- ".github/workflows/composer-lint.yml"
15+
- "composer.json"
16+
17+
jobs:
18+
composer-lint:
19+
name: "Composer Lint"
20+
uses: "doctrine/.github/.github/workflows/[email protected]"

composer.json

Lines changed: 45 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,39 @@
11
{
22
"name": "doctrine/orm",
3-
"type": "library",
43
"description": "Object-Relational-Mapper for PHP",
5-
"keywords": ["orm", "database"],
6-
"homepage": "https://www.doctrine-project.org/projects/orm.html",
74
"license": "MIT",
8-
"authors": [
9-
{"name": "Guilherme Blanco", "email": "[email protected]"},
10-
{"name": "Roman Borschel", "email": "[email protected]"},
11-
{"name": "Benjamin Eberlei", "email": "[email protected]"},
12-
{"name": "Jonathan Wage", "email": "[email protected]"},
13-
{"name": "Marco Pivetta", "email": "[email protected]"}
5+
"type": "library",
6+
"keywords": [
7+
"orm",
8+
"database"
149
],
15-
"scripts": {
16-
"docs": "composer --working-dir docs update && ./docs/vendor/bin/build-docs.sh @additional_args"
17-
},
18-
"config": {
19-
"allow-plugins": {
20-
"composer/package-versions-deprecated": true,
21-
"dealerdirect/phpcodesniffer-composer-installer": true,
22-
"phpstan/extension-installer": true
10+
"authors": [
11+
{
12+
"name": "Guilherme Blanco",
13+
"email": "[email protected]"
2314
},
24-
"sort-packages": true
25-
},
15+
{
16+
"name": "Roman Borschel",
17+
"email": "[email protected]"
18+
},
19+
{
20+
"name": "Benjamin Eberlei",
21+
"email": "[email protected]"
22+
},
23+
{
24+
"name": "Jonathan Wage",
25+
"email": "[email protected]"
26+
},
27+
{
28+
"name": "Marco Pivetta",
29+
"email": "[email protected]"
30+
}
31+
],
32+
"homepage": "https://www.doctrine-project.org/projects/orm.html",
2633
"require": {
2734
"php": "^7.1 || ^8.0",
28-
"composer-runtime-api": "^2",
2935
"ext-ctype": "*",
36+
"composer-runtime-api": "^2",
3037
"doctrine/cache": "^1.12.1 || ^2.1.1",
3138
"doctrine/collections": "^1.5 || ^2.1",
3239
"doctrine/common": "^3.0.3",
@@ -64,17 +71,29 @@
6471
"symfony/yaml": "If you want to use YAML Metadata Mapping Driver"
6572
},
6673
"autoload": {
67-
"psr-4": { "Doctrine\\ORM\\": "src" }
74+
"psr-4": {
75+
"Doctrine\\ORM\\": "src"
76+
}
6877
},
6978
"autoload-dev": {
7079
"psr-4": {
71-
"Doctrine\\Tests\\": "tests/Tests",
80+
"Doctrine\\Performance\\": "tests/Performance",
7281
"Doctrine\\StaticAnalysis\\": "tests/StaticAnalysis",
73-
"Doctrine\\Performance\\": "tests/Performance"
82+
"Doctrine\\Tests\\": "tests/Tests"
7483
}
7584
},
76-
"bin": ["bin/doctrine"],
77-
"archive": {
78-
"exclude": ["!vendor", "tests", "*phpunit.xml", "build.xml", "build.properties", "composer.phar", "vendor/satooshi", "lib/vendor", "*.swp"]
85+
"bin": [
86+
"bin/doctrine"
87+
],
88+
"config": {
89+
"allow-plugins": {
90+
"composer/package-versions-deprecated": true,
91+
"dealerdirect/phpcodesniffer-composer-installer": true,
92+
"phpstan/extension-installer": true
93+
},
94+
"sort-packages": true
95+
},
96+
"scripts": {
97+
"docs": "composer --working-dir docs update && ./docs/vendor/bin/build-docs.sh @additional_args"
7998
}
8099
}

0 commit comments

Comments
 (0)