File tree Expand file tree Collapse file tree 5 files changed +86
-16
lines changed Expand file tree Collapse file tree 5 files changed +86
-16
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
- on : [push, pull_request]
4
-
2
+ on :
3
+ pull_request :
5
4
jobs :
6
5
tests :
7
6
runs-on : ubuntu-latest
8
-
9
7
strategy :
10
8
matrix :
11
9
php : [8.3, 8.4]
12
-
13
10
steps :
14
11
- name : Checkout code
15
12
uses : actions/checkout@v4
20
17
php-version : ${{ matrix.php }}
21
18
extensions : pdo, sqlite, imagick
22
19
coverage : none
23
-
24
20
- name : Validate composer.json and composer.lock
25
21
run : composer validate
26
-
27
22
- name : Install dependencies
28
23
run : composer install --prefer-dist --no-progress --no-interaction --no-suggest
29
24
- name : Run ECS
Original file line number Diff line number Diff line change
1
+ name : Automated release
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ jobs :
7
+ static_analysis :
8
+ name : Static Analysis
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - name : Setup PHP with PECL extension
13
+ uses : shivammathur/setup-php@v2
14
+ with :
15
+ php-version : ' 8.4'
16
+ - uses : ramsey/composer-install@v3
17
+ - name : Initialize cache
18
+ uses : actions/cache@v4
19
+ with :
20
+ key : phpstan
21
+ path : .phpstan-cache
22
+ - name : Run PHPStan
23
+ run : vendor/bin/phpstan
24
+ - name : Run ECS
25
+ run : php vendor/bin/ecs
26
+ tests :
27
+ runs-on : ubuntu-latest
28
+ strategy :
29
+ matrix :
30
+ php : [8.3, 8.4]
31
+ steps :
32
+ - name : Checkout code
33
+ uses : actions/checkout@v4
34
+
35
+ - name : Setup PHP
36
+ uses : shivammathur/setup-php@v2
37
+ with :
38
+ php-version : ${{ matrix.php }}
39
+ extensions : pdo, sqlite, imagick
40
+ coverage : none
41
+ - uses : ramsey/composer-install@v3
42
+ - name : Run test suite
43
+ run : |
44
+ php vendor/bin/codecept build
45
+ php vendor/bin/codecept run
46
+ release :
47
+ name : Automated release
48
+ needs :
49
+ - static_analysis
50
+ - tests
51
+ runs-on : ubuntu-latest
52
+ steps :
53
+ - uses : actions/checkout@v4
54
+ with :
55
+ persist-credentials : false
56
+ - uses : actions/setup-node@v4
57
+ with :
58
+ node-version : 22
59
+ - run : >
60
+ npx
61
+ -p "@semantic-release/commit-analyzer"
62
+ -p "@semantic-release/release-notes-generator"
63
+ -p conventional-changelog-conventionalcommits
64
+ -p semantic-release
65
+ -- semantic-release
66
+ env:
67
+ GITHUB_TOKEN: ${{ secrets.COLLECTHOR_FINE_GRAINED_RELEASE }}
68
+ permissions :
69
+ packages : write
70
+ contents : write
71
+ pull-requests : write
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches" : [" master" ],
3
+ "plugins" : [
4
+ [" @semantic-release/commit-analyzer" , {
5
+ "preset" : " conventionalcommits" ,
6
+ "presetConfig" : {}
7
+ }],
8
+ " @semantic-release/github" ,
9
+ " @semantic-release/release-notes-generator" ]
10
+ }
Original file line number Diff line number Diff line change @@ -1956,12 +1956,6 @@ parameters:
1956
1956
count : 1
1957
1957
path : tests/cases/simple/helpers/EmptyString.php
1958
1958
1959
- -
1960
- message : ' #^Parameter \#1 \$directory of function tempnam expects string, null given\.$#'
1961
- identifier : argument.type
1962
- count : 3
1963
- path : tests/cases/sqlite/config.php
1964
-
1965
1959
-
1966
1960
message : ' #^Cannot call method get\(\) on yii\\base\\Application\|null\.$#'
1967
1961
identifier : method.nonObject
Original file line number Diff line number Diff line change 9
9
'components ' => [
10
10
'db ' => [
11
11
'class ' => yii \db \Connection::class,
12
- 'dsn ' => 'sqlite: ' . tempnam (null , '/file0 ' ),
12
+ 'dsn ' => 'sqlite: ' . tempnam ('' , '/file0 ' ),
13
13
],
14
14
'db1 ' => [
15
15
'class ' => yii \db \Connection::class,
16
- 'dsn ' => 'sqlite: ' . tempnam (null , '/file1 ' ),
16
+ 'dsn ' => 'sqlite: ' . tempnam ('' , '/file1 ' ),
17
17
],
18
18
'db21 ' => [
19
19
'class ' => yii \db \Connection::class,
20
- 'dsn ' => 'sqlite: ' . ($ name = tempnam (null , '/file2 ' )),
20
+ 'dsn ' => 'sqlite: ' . ($ name = tempnam ('' , '/file2 ' )),
21
21
],
22
22
'db22 ' => [
23
23
'class ' => yii \db \Connection::class,
You can’t perform that action at this time.
0 commit comments