File tree Expand file tree Collapse file tree 7 files changed +4808
-27
lines changed Expand file tree Collapse file tree 7 files changed +4808
-27
lines changed Original file line number Diff line number Diff line change
1
+ name : " Static Analyze"
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - " 1.x"
8
+ schedule :
9
+ - cron : ' * 8 * * *'
10
+
11
+ jobs :
12
+ compatibility :
13
+ name : " Static Analyze"
14
+
15
+ runs-on : ${{ matrix.operating-system }}
16
+
17
+ strategy :
18
+ matrix :
19
+ dependencies :
20
+ - " locked"
21
+ php-version :
22
+ - " 7.4"
23
+ operating-system :
24
+ - " ubuntu-latest"
25
+
26
+ steps :
27
+ - name : " Checkout"
28
+ uses : " actions/checkout@v2"
29
+
30
+ - name : " Install PHP"
31
+ uses : " shivammathur/setup-php@v2"
32
+ with :
33
+ coverage : " pcov"
34
+ php-version : " ${{ matrix.php-version }}"
35
+ ini-values : memory_limit=-1
36
+
37
+ - name : " Cache dependencies"
38
+ uses : " actions/cache@v2"
39
+ with :
40
+ path : |
41
+ ~/.composer/cache
42
+ vendor
43
+ key : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
44
+ restore-keys : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
45
+
46
+ - name : " Install lowest dependencies"
47
+ if : ${{ matrix.dependencies == 'lowest' }}
48
+ run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
49
+
50
+ - name : " Install highest dependencies"
51
+ if : ${{ matrix.dependencies == 'highest' }}
52
+ run : " composer update --no-interaction --no-progress --no-suggest"
53
+
54
+ - name : " Install locked dependencies"
55
+ if : ${{ matrix.dependencies == 'locked' }}
56
+ run : " composer install --no-interaction --no-progress --no-suggest"
57
+
58
+ - name : " Static Analyze"
59
+ run : " composer static:analyze"
Original file line number Diff line number Diff line change
1
+ name : " Tests"
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - " 1.x"
8
+ schedule :
9
+ - cron : ' * 8 * * *'
10
+
11
+ jobs :
12
+ compatibility :
13
+ name : " Tests"
14
+
15
+ runs-on : ${{ matrix.operating-system }}
16
+
17
+ strategy :
18
+ matrix :
19
+ dependencies :
20
+ - " locked"
21
+ - " lowest"
22
+ - " highest"
23
+ php-version :
24
+ - " 7.4"
25
+ - " 7.3"
26
+ - " 7.2"
27
+ operating-system :
28
+ - " ubuntu-latest"
29
+ - " windows-latest"
30
+
31
+ steps :
32
+ - name : " Checkout"
33
+ uses : " actions/checkout@v2"
34
+
35
+ - name : " Install PHP"
36
+ uses : " shivammathur/setup-php@v2"
37
+ with :
38
+ coverage : " pcov"
39
+ php-version : " ${{ matrix.php-version }}"
40
+ ini-values : memory_limit=-1
41
+
42
+ - name : " Cache dependencies"
43
+ uses : " actions/cache@v2"
44
+ with :
45
+ path : |
46
+ ~/.composer/cache
47
+ vendor
48
+ key : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
49
+ restore-keys : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
50
+
51
+ - name : " Install lowest dependencies"
52
+ if : ${{ matrix.dependencies == 'lowest' }}
53
+ run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
54
+
55
+ - name : " Install highest dependencies"
56
+ if : ${{ matrix.dependencies == 'highest' }}
57
+ run : " composer update --no-interaction --no-progress --no-suggest"
58
+
59
+ - name : " Install locked dependencies"
60
+ if : ${{ matrix.dependencies == 'locked' }}
61
+ run : " composer install --no-interaction --no-progress --no-suggest"
62
+
63
+ - name : " Tests"
64
+ run : " composer test"
Original file line number Diff line number Diff line change 1
1
vendor /
2
2
bin /
3
- composer.lock
3
+ var /
4
4
.DS_Store
5
5
.idea
6
6
.phpunit.result.cache
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 25
25
"openlss/lib-array2xml" : " ^1.0"
26
26
},
27
27
"require-dev" : {
28
+ "friendsofphp/php-cs-fixer" : " ^2.4" ,
29
+ "phpstan/phpstan" : " ^0.12.32" ,
28
30
"phpunit/phpunit" : " ^8.4" ,
29
- "friendsofphp/php-cs-fixer " : " ^2.4 "
31
+ "rector/rector-prefixed " : " ^0.7.43 "
30
32
},
31
33
"autoload" : {
32
34
"psr-4" : {
46
48
" php-cs-fixer fix --using-cache=no"
47
49
],
48
50
"test" : [
49
- " phpunit" ,
50
- " php-cs-fixer fix -v --dry-run"
51
+ " phpunit"
52
+ ],
53
+ "static:analyze" : [
54
+ " phpstan analyze -c phpstan.neon" ,
55
+ " php-cs-fixer fix --dry-run"
51
56
]
52
57
},
53
58
"extra" : {
You can’t perform that action at this time.
0 commit comments