File tree Expand file tree Collapse file tree 13 files changed +284
-132
lines changed Expand file tree Collapse file tree 13 files changed +284
-132
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
phpstan :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
- - uses : actions/checkout@v2
8
- - uses : actions/cache@v2
7
+ - uses : actions/checkout@v3
8
+ - uses : actions/cache@v3
9
9
with :
10
10
path : ' **/vendor'
11
11
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12
12
restore-keys : |
13
13
${{ runner.os }}-composer-
14
- - uses : php-actions/composer@v5
14
+ - uses : php-actions/composer@v6
15
15
with :
16
16
args : --prefer-dist
17
- php_version : 8.0
18
-
17
+ php_version : 8.2
19
18
- name : PHPStan
20
- uses : php-actions/phpstan@v2
19
+ uses : php-actions/phpstan@v3
21
20
with :
22
21
path : src/
23
22
args : --level=5
Original file line number Diff line number Diff line change 4
4
phpstan :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
- - uses : actions/checkout@v2
8
- - uses : actions/cache@v2
7
+ - uses : actions/checkout@v3
8
+ - uses : actions/cache@v3
9
9
with :
10
10
path : ' **/vendor'
11
11
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12
12
restore-keys : |
13
13
${{ runner.os }}-composer-
14
- - uses : php-actions/composer@v5
14
+ - uses : php-actions/composer@v6
15
15
with :
16
16
args : --prefer-dist
17
- php_version : 8.0
18
-
17
+ php_version : 8.2
19
18
- name : PHPStan
20
- uses : php-actions/phpstan@v2
19
+ uses : php-actions/phpstan@v3
21
20
with :
22
21
path : src/
23
22
args : --level=5
Original file line number Diff line number Diff line change 4
4
phpstan :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
- - uses : actions/checkout@v2
8
- - uses : actions/cache@v2
7
+ - uses : actions/checkout@v3
8
+ - uses : actions/cache@v3
9
9
with :
10
10
path : ' **/vendor'
11
11
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12
12
restore-keys : |
13
13
${{ runner.os }}-composer-
14
- - uses : php-actions/composer@v5
14
+ - uses : php-actions/composer@v6
15
15
with :
16
16
args : --prefer-dist
17
- php_version : 8.0
18
-
17
+ php_version : 8.2
19
18
- name : PHPStan
20
- uses : php-actions/phpstan@v2
19
+ uses : php-actions/phpstan@v3
21
20
with :
22
21
path : src/
23
22
args : --level=5
Original file line number Diff line number Diff line change 4
4
cs-fixer :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
- - uses : actions/checkout@v2
7
+ - uses : actions/checkout@v3
8
8
- name : Cs-Fixer
9
9
run : |
10
- wget -q https://cs.symfony.com/download/php-cs-fixer-v2 .phar -O php-cs-fixer
10
+ wget -q https://cs.symfony.com/download/php-cs-fixer-v3 .phar -O php-cs-fixer
11
11
chmod a+x php-cs-fixer
12
12
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
13
-
14
- phpunit :
15
- runs-on : ubuntu-latest
16
- steps :
17
- - uses : actions/checkout@v2
18
- - uses : shivammathur/setup-php@v2
19
- with :
20
- php-version : ' 8.0'
21
- tools : composer:v2
22
- coverage : pcov
23
- - uses : actions/cache@v2
24
- with :
25
- path : ' **/vendor'
26
- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
27
- restore-keys : |
28
- ${{ runner.os }}-composer-
29
- - uses : php-actions/composer@v5
30
- with :
31
- args : --prefer-dist
32
- php_version : 8.0
33
-
34
- - name : Run tests & generate Coverage
35
- run : bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
36
-
37
- - name : Store coverage files
38
- uses : actions/upload-artifact@v2
39
- with :
40
- path : var/coverage
41
-
42
- phpstan :
43
- runs-on : ubuntu-latest
44
- steps :
45
- - uses : actions/checkout@v2
46
- - uses : actions/cache@v2
47
- with :
48
- path : ' **/vendor'
49
- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
50
- restore-keys : |
51
- ${{ runner.os }}-composer-
52
- - uses : php-actions/composer@v5
53
- with :
54
- args : --prefer-dist
55
- php_version : 8.0
56
-
57
- - name : PHPStan
58
- uses : php-actions/phpstan@v2
59
- with :
60
- path : src/
61
- args : --level=4
Original file line number Diff line number Diff line change
1
+ # github action that checks code with Rector
2
+ name : Rector
3
+
4
+ on : pull_request
5
+
6
+ jobs :
7
+ rector :
8
+ runs-on : ubuntu-latest
9
+ if : github.event.pull_request.head.repo.full_name == 'php-etl/action-console-runtime'
10
+ steps :
11
+ -
12
+ if : github.event.pull_request.head.repo.full_name == github.repository
13
+ uses : actions/checkout@v3
14
+ with :
15
+ # Must be used to trigger workflow after push
16
+ token : ${{ secrets.ACCESS_TOKEN }}
17
+
18
+ -
19
+ uses : shivammathur/setup-php@v2
20
+ with :
21
+ php-version : 8.1
22
+ coverage : none
23
+
24
+ - uses : " ramsey/composer-install@v2"
25
+
26
+ - run : bin/rector --ansi
27
+
28
+ -
29
+ # commit only to core contributors who have repository access
30
+ uses : stefanzweifel/git-auto-commit-action@v4
31
+ with :
32
+ commit_message : ' [rector] Rector fixes'
33
+ commit_author :
' GitHub Action <[email protected] >'
34
+ commit_user_email :
' [email protected] '
Original file line number Diff line number Diff line change 1
- /vendor /
1
+ /vendor
2
+ .php-cs-fixer.cache
3
+ /bin
Original file line number Diff line number Diff line change 7
7
return (new PhpCsFixer \Config ())
8
8
->setRiskyAllowed (true )
9
9
->setRules ([
10
+ '@PHP82Migration ' => true ,
10
11
'@PHP81Migration ' => true ,
11
12
'@PHP80Migration:risky ' => true ,
12
13
'@PHPUnit84Migration:risky ' => true ,
Original file line number Diff line number Diff line change 16
16
"minimum-stability" : " dev" ,
17
17
"prefer-stable" : true ,
18
18
"require" : {
19
- "php" : " ^8.0 " ,
19
+ "php" : " ^8.2 " ,
20
20
"symfony/console" : " ^5.2" ,
21
- "php-etl/pipeline-contracts " : " ^0.3 .0" ,
22
- "php-etl/console-state " : " ^0.1.0"
21
+ "php-etl/console-state " : " ^0.1 .0" ,
22
+ "php-etl/action-contracts " : " ^0.1.0"
23
23
},
24
24
"autoload" : {
25
25
"psr-4" : {
33
33
"branch-alias" : {
34
34
"dev-main" : " 0.1.x-dev"
35
35
}
36
+ },
37
+ "require-dev" : {
38
+ "rector/rector" : " ^0.15.0"
36
39
}
37
40
}
You can’t perform that action at this time.
0 commit comments