Skip to content

Commit 7999457

Browse files
authored
Merge pull request #789 from driehle/feat/update-workflows
Updated upstream workflows, adding composer-lint
2 parents bdff225 + 877aef7 commit 7999457

File tree

6 files changed

+43
-80
lines changed

6 files changed

+43
-80
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'

composer.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "doctrine/doctrine-module",
33
"description": "Laminas Module that provides Doctrine basic functionality required for ORM and ODM modules",
4-
"type": "library",
54
"license": "MIT",
6-
"homepage": "http://www.doctrine-project.org/",
5+
"type": "library",
76
"keywords": [
87
"doctrine",
98
"module",
@@ -35,12 +34,7 @@
3534
"homepage": "https://tomhanderson.com"
3635
}
3736
],
38-
"extra": {
39-
"laminas": {
40-
"config-provider": "DoctrineModule\\ConfigProvider",
41-
"module": "DoctrineModule"
42-
}
43-
},
37+
"homepage": "http://www.doctrine-project.org/",
4438
"require": {
4539
"php": "^7.4 || ~8.0.0 || ~8.1.0",
4640
"container-interop/container-interop": "^1.2.0",
@@ -63,9 +57,6 @@
6357
"laminas/laminas-validator": "^2.16.0",
6458
"symfony/console": "^5.4.3 || ^6.0.3"
6559
},
66-
"provide": {
67-
"laminas/laminas-cache-storage-implementation": "1.0.0"
68-
},
6960
"require-dev": {
7061
"doctrine/coding-standard": "^9.0.0",
7162
"doctrine/mongodb-odm": "^2.3.0",
@@ -87,6 +78,9 @@
8778
"conflict": {
8879
"doctrine/orm": "2.12.0"
8980
},
81+
"provide": {
82+
"laminas/laminas-cache-storage-implementation": "1.0.0"
83+
},
9084
"suggest": {
9185
"doctrine/data-fixtures": "Data Fixtures if you want to generate test data or bootstrap data for your deployments"
9286
},
@@ -104,12 +98,18 @@
10498
"bin/doctrine-module"
10599
],
106100
"config": {
107-
"sort-packages": true,
101+
"allow-plugins": {
102+
"dealerdirect/phpcodesniffer-composer-installer": true
103+
},
108104
"platform": {
109105
"ext-mongodb": "1.8.0"
110106
},
111-
"allow-plugins": {
112-
"dealerdirect/phpcodesniffer-composer-installer": true
107+
"sort-packages": true
108+
},
109+
"extra": {
110+
"laminas": {
111+
"config-provider": "DoctrineModule\\ConfigProvider",
112+
"module": "DoctrineModule"
113113
}
114114
},
115115
"scripts": {

0 commit comments

Comments
 (0)