File tree Expand file tree Collapse file tree 3 files changed +20
-41
lines changed Expand file tree Collapse file tree 3 files changed +20
-41
lines changed Original file line number Diff line number Diff line change 1
1
2
2
name : " Coding Standards"
3
3
4
- on : ["pull_request", "push"]
4
+ on :
5
+ pull_request :
6
+ branches :
7
+ - " *.x"
8
+ push :
9
+ branches :
10
+ - " *.x"
5
11
6
12
jobs :
7
13
coding-standards :
@@ -24,15 +30,10 @@ jobs:
24
30
php-version : " ${{ matrix.php-version }}"
25
31
tools : " cs2pr"
26
32
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
-
34
33
- 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"
36
37
37
38
# https://github.com/doctrine/.github/issues/3
38
39
- name : " Run PHP_CodeSniffer"
Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
branches :
7
7
- " *.x"
8
- - " master"
9
8
push :
10
9
branches :
11
10
- " *.x"
12
- - " master"
13
11
14
12
env :
15
13
fail-fast : true
@@ -26,10 +24,10 @@ jobs:
26
24
- " 7.3"
27
25
- " 7.4"
28
26
- " 8.0"
29
- deps :
30
- - " normal "
27
+ dependencies :
28
+ - " highest "
31
29
include :
32
- - deps : " low "
30
+ - dependencies : " lowest "
33
31
php-version : " 7.2"
34
32
35
33
steps :
@@ -45,24 +43,11 @@ jobs:
45
43
coverage : " pcov"
46
44
ini-values : " zend.assertions=1"
47
45
48
- - name : " Cache dependencies installed with composer "
49
- uses : " actions/cache@v2 "
46
+ - name : " Install dependencies with Composer "
47
+ uses : " ramsey/composer-install@v1 "
50
48
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"
66
51
67
52
- name : " Run PHPUnit"
68
53
run : " vendor/bin/phpunit --coverage-clover=coverage.xml"
Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
branches :
7
7
- " *.x"
8
- - " master"
9
8
push :
10
9
branches :
11
10
- " *.x"
12
- - " master"
13
11
14
12
jobs :
15
13
static-analysis-phpstan :
@@ -32,15 +30,10 @@ jobs:
32
30
php-version : " ${{ matrix.php-version }}"
33
31
tools : " cs2pr"
34
32
35
- - name : " Cache dependencies installed with composer "
36
- uses : " actions/cache@v2 "
33
+ - name : " Install dependencies with Composer "
34
+ uses : " ramsey/composer-install@v1 "
37
35
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"
44
37
45
38
- name : " Run a static analysis with phpstan/phpstan"
46
39
run : " vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"
You can’t perform that action at this time.
0 commit comments