Skip to content

Commit 877aef7

Browse files
committed
updated upstream workflows and added composer-lint
1 parent e8d0d6c commit 877aef7

File tree

5 files changed

+29
-66
lines changed

5 files changed

+29
-66
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ on:
1111
jobs:
1212
coding-standards:
1313
name: "Coding Standards"
14-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.4.1"
14+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@2.1.0"
1515
with:
1616
php-version: '8.1'
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+
- "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/[email protected]"
19+
with:
20+
php-version: "8.1"

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,72 +2,15 @@ name: "Continuous Integration"
22

33
on:
44
pull_request:
5+
branches:
6+
- "*.x"
57
push:
68
branches:
7-
- '[0-9]+.[0-9]+.x'
8-
- 'refs/pull/*'
9+
- "*.x"
910

1011
jobs:
1112
phpunit:
1213
name: "PHPUnit"
13-
runs-on: "ubuntu-20.04"
14-
15-
strategy:
16-
matrix:
17-
php-version:
18-
- "7.4"
19-
- "8.0"
20-
- "8.1"
21-
dependencies:
22-
- "highest"
23-
- "lowest"
24-
25-
steps:
26-
- name: "Checkout"
27-
uses: "actions/checkout@v2"
28-
with:
29-
fetch-depth: 2
30-
31-
- name: "Install PHP"
32-
uses: "shivammathur/setup-php@v2"
33-
with:
34-
php-version: "${{ matrix.php-version }}"
35-
coverage: "pcov"
36-
ini-values: "zend.assertions=1"
37-
38-
- name: "Install dependencies with Composer"
39-
uses: "ramsey/composer-install@v1"
40-
with:
41-
dependency-versions: "${{ matrix.dependencies }}"
42-
composer-options: "--prefer-dist"
43-
44-
- name: "Run PHPUnit"
45-
run: "composer test-coverage"
46-
47-
- name: "Upload coverage file"
48-
uses: "actions/upload-artifact@v2"
49-
with:
50-
name: "phpunit-${{ matrix.php-version }}-${{ matrix.dependencies }}.coverage"
51-
path: "coverage.xml"
52-
53-
upload_coverage:
54-
name: "Upload coverage to Codecov"
55-
runs-on: "ubuntu-20.04"
56-
needs:
57-
- "phpunit"
58-
59-
steps:
60-
- name: "Checkout"
61-
uses: "actions/checkout@v2"
62-
with:
63-
fetch-depth: 2
64-
65-
- name: "Download coverage files"
66-
uses: "actions/download-artifact@v2"
67-
with:
68-
path: "reports"
69-
70-
- name: "Upload to Codecov"
71-
uses: "codecov/codecov-action@v1"
72-
with:
73-
directory: "reports"
14+
uses: "doctrine/.github/.github/workflows/[email protected]"
15+
with:
16+
php-versions: '["7.4", "8.0", "8.1"]'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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.4.1"
11+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@2.1.0"
1212
with:
1313
use-next-minor-as-default-branch: true
1414
secrets:

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ on:
1111
jobs:
1212
static-analysis:
1313
name: "Static Analysis"
14-
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.4.1"
14+
uses: "doctrine/.github/.github/workflows/static-analysis.yml@2.1.0"
1515
with:
1616
php-version: '8.1'

0 commit comments

Comments
 (0)