Skip to content

Commit 648b034

Browse files
authored
Merge pull request #441 from greg0ire/update-workflows
Update workflows
2 parents e7e2aa9 + 4672060 commit 648b034

7 files changed

+65
-22
lines changed

.github/workflows/coding-standards.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212
jobs:
1313
coding-standards:
1414
name: "Coding Standards"
15-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.1.1"
15+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.5.1"

.github/workflows/composer-lint.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Composer Lint"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*.x"
7+
paths:
8+
- "composer.json"
9+
push:
10+
branches:
11+
- "*.x"
12+
paths:
13+
- "composer.json"
14+
15+
jobs:
16+
composer-lint:
17+
name: "Composer Lint"
18+
uses: "doctrine/.github/.github/workflows/composer-lint.yml@1.5.1"

.github/workflows/continuous-integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ env:
1414
jobs:
1515
phpunit:
1616
name: "PHPUnit"
17-
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@1.1.1"
17+
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@1.5.1"
1818
with:
1919
php-versions: '["7.1", "7.2", "7.3", "7.4", "8.0"]'

.github/workflows/release-on-milestone-closed.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ on:
88
jobs:
99
release:
1010
name: "Git tag, release & create merge-up PR"
11-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@1.1.1"
11+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@1.5.1"
1212
secrets:
13-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1413
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1514
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
1615
ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}

.github/workflows/static-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212
jobs:
1313
static-analysis:
1414
name: "Static Analysis"
15-
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.1.1"
15+
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.5.1"

composer.json

+37-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
11
{
22
"name": "doctrine/annotations",
3-
"type": "library",
43
"description": "Docblock Annotations Parser",
5-
"keywords": ["annotations", "docblock", "parser"],
6-
"homepage": "https://www.doctrine-project.org/projects/annotations.html",
74
"license": "MIT",
5+
"type": "library",
6+
"keywords": [
7+
"annotations",
8+
"docblock",
9+
"parser"
10+
],
811
"authors": [
9-
{"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
10-
{"name": "Roman Borschel", "email": "roman@code-factory.org"},
11-
{"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
12-
{"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
13-
{"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"}
12+
{
13+
"name": "Guilherme Blanco",
14+
"email": "guilhermeblanco@gmail.com"
15+
},
16+
{
17+
"name": "Roman Borschel",
18+
"email": "roman@code-factory.org"
19+
},
20+
{
21+
"name": "Benjamin Eberlei",
22+
"email": "kontakt@beberlei.de"
23+
},
24+
{
25+
"name": "Jonathan Wage",
26+
"email": "jonwage@gmail.com"
27+
},
28+
{
29+
"name": "Johannes Schmitt",
30+
"email": "schmittjoh@gmail.com"
31+
}
1432
],
33+
"homepage": "https://www.doctrine-project.org/projects/annotations.html",
1534
"require": {
1635
"php": "^7.1 || ^8.0",
1736
"ext-tokenizer": "*",
@@ -21,19 +40,15 @@
2140
"require-dev": {
2241
"doctrine/cache": "^1.11 || ^2.0",
2342
"doctrine/coding-standard": "^6.0 || ^8.1",
24-
"phpstan/phpstan": "^0.12.20",
43+
"phpstan/phpstan": "^1.4.10 || ^1.8.0",
2544
"phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5",
2645
"symfony/cache": "^4.4 || ^5.2",
2746
"vimeo/psalm": "^4.10"
2847
},
29-
"config": {
30-
"sort-packages": true,
31-
"allow-plugins": {
32-
"dealerdirect/phpcodesniffer-composer-installer": true
33-
}
34-
},
3548
"autoload": {
36-
"psr-4": { "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" }
49+
"psr-4": {
50+
"Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
51+
}
3752
},
3853
"autoload-dev": {
3954
"psr-4": {
@@ -44,5 +59,11 @@
4459
"tests/Doctrine/Tests/Common/Annotations/Fixtures/functions.php",
4560
"tests/Doctrine/Tests/Common/Annotations/Fixtures/SingleClassLOC1000.php"
4661
]
62+
},
63+
"config": {
64+
"allow-plugins": {
65+
"dealerdirect/phpcodesniffer-composer-installer": true
66+
},
67+
"sort-packages": true
4768
}
4869
}

phpstan.neon

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ parameters:
33
paths:
44
- lib
55
- tests
6-
excludes_analyse:
6+
scanFiles:
7+
- tests/Doctrine/Tests/Common/Annotations/Fixtures/GlobalNamespacesPerFileWithClassAsFirst.php
8+
- tests/Doctrine/Tests/Common/Annotations/Fixtures/GlobalNamespacesPerFileWithClassAsLast.php
9+
- tests/Doctrine/Tests/Common/Annotations/Fixtures/NonNamespacedClass.php
10+
- tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Entity.php
11+
excludePaths:
712
- tests/*/Fixtures/*
813
- tests/Doctrine/Tests/Common/Annotations/ReservedKeywordsClasses.php
914
- tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Entity.php

0 commit comments

Comments
 (0)