Skip to content

Commit a2d769f

Browse files
committed
Merge remote-tracking branch 'origin/3.0.x' into 3.1.x
2 parents 33004b4 + 0a9a4ff commit a2d769f

File tree

3 files changed

+20
-41
lines changed

3 files changed

+20
-41
lines changed

.github/workflows/coding-standards.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11

22
name: "Coding Standards"
33

4-
on: ["pull_request", "push"]
4+
on:
5+
pull_request:
6+
branches:
7+
- "*.x"
8+
push:
9+
branches:
10+
- "*.x"
511

612
jobs:
713
coding-standards:
@@ -24,15 +30,10 @@ jobs:
2430
php-version: "${{ matrix.php-version }}"
2531
tools: "cs2pr"
2632

27-
- name: "Cache dependencies installed with Composer"
28-
uses: "actions/cache@v2"
29-
with:
30-
path: "~/.composer/cache"
31-
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
32-
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
33-
3433
- name: "Install dependencies with Composer"
35-
run: "composer install --no-interaction --no-progress --no-suggest"
34+
uses: "ramsey/composer-install@v1"
35+
with:
36+
dependency-versions: "highest"
3637

3738
# https://github.com/doctrine/.github/issues/3
3839
- name: "Run PHP_CodeSniffer"

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ on:
55
pull_request:
66
branches:
77
- "*.x"
8-
- "master"
98
push:
109
branches:
1110
- "*.x"
12-
- "master"
1311

1412
env:
1513
fail-fast: true
@@ -26,10 +24,10 @@ jobs:
2624
- "7.3"
2725
- "7.4"
2826
- "8.0"
29-
deps:
30-
- "normal"
27+
dependencies:
28+
- "highest"
3129
include:
32-
- deps: "low"
30+
- dependencies: "lowest"
3331
php-version: "7.2"
3432

3533
steps:
@@ -45,24 +43,11 @@ jobs:
4543
coverage: "pcov"
4644
ini-values: "zend.assertions=1"
4745

48-
- name: "Cache dependencies installed with composer"
49-
uses: "actions/cache@v2"
46+
- name: "Install dependencies with Composer"
47+
uses: "ramsey/composer-install@v1"
5048
with:
51-
path: "~/.composer/cache"
52-
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
53-
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
54-
55-
- name: "Allow installing dev dependencies"
56-
run: "composer config minimum-stability dev"
57-
if: "${{ matrix.deps == 'dev' }}"
58-
59-
- name: "Install dependencies with composer"
60-
run: "composer update --no-interaction --prefer-dist"
61-
if: "${{ matrix.deps != 'low' }}"
62-
63-
- name: "Install lowest possible dependencies with composer"
64-
run: "composer update --no-interaction --prefer-dist --prefer-lowest"
65-
if: "${{ matrix.deps == 'low' }}"
49+
dependency-versions: "${{ matrix.dependencies }}"
50+
composer-options: "--prefer-dist"
6651

6752
- name: "Run PHPUnit"
6853
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"

.github/workflows/static-analysis.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ on:
55
pull_request:
66
branches:
77
- "*.x"
8-
- "master"
98
push:
109
branches:
1110
- "*.x"
12-
- "master"
1311

1412
jobs:
1513
static-analysis-phpstan:
@@ -32,15 +30,10 @@ jobs:
3230
php-version: "${{ matrix.php-version }}"
3331
tools: "cs2pr"
3432

35-
- name: "Cache dependencies installed with composer"
36-
uses: "actions/cache@v2"
33+
- name: "Install dependencies with Composer"
34+
uses: "ramsey/composer-install@v1"
3735
with:
38-
path: "~/.composer/cache"
39-
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
40-
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
41-
42-
- name: "Install dependencies with composer"
43-
run: "composer install --no-interaction --no-progress --no-suggest"
36+
dependency-versions: "highest"
4437

4538
- name: "Run a static analysis with phpstan/phpstan"
4639
run: "vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"

0 commit comments

Comments
 (0)