File tree Expand file tree Collapse file tree 3 files changed +78
-2
lines changed Expand file tree Collapse file tree 3 files changed +78
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : code-style
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches : [ master ]
6
7
pull_request :
38
39
run : composer install --prefer-dist --no-progress
39
40
40
41
- name : Run ecs
41
- run : composer ecs
42
+ run : composer ecs-fix
43
+
44
+ - name : " Check if build has changed"
45
+ if : success()
46
+ id : has-changes
47
+ run : |
48
+ echo "stdout<<EOF" >> $GITHUB_OUTPUT
49
+ echo "$(git diff --stat)" >> $GITHUB_OUTPUT
50
+ echo 'EOF' >> $GITHUB_OUTPUT
51
+
52
+ - name : Import GPG key
53
+ if : ${{ steps.has-changes.outputs.stdout }}
54
+ uses : crazy-max/ghaction-import-gpg@v6
55
+ with :
56
+ gpg_private_key : ${{ secrets.GPG_BOT }}
57
+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
58
+ fingerprint : ${{ secrets.GPG_FINGERPRINT }}
59
+ git_config_global : true
60
+ git_user_signingkey : true
61
+ git_commit_gpgsign : true
62
+ git_committer_name : Github bot
63
+ git_committer_email :
[email protected]
64
+
65
+ - name : " Commit files"
66
+ if : ${{ steps.has-changes.outputs.stdout }}
67
+ env :
68
+ GH_TOKEN : ${{ secrets.BOT_TOKEN }}
69
+ run : |
70
+ gh pr checkout ${{ github.event.pull_request.number }}
71
+ git commit -S -m "ecs fix" -a
72
+
73
+ - name : " Push changes"
74
+ if : ${{ steps.has-changes.outputs.stdout }}
75
+ env :
76
+ GITHUB_TOKEN : ${{ secrets.BOT_TOKEN }}
77
+ run : git push -u origin HEAD
Original file line number Diff line number Diff line change 1
1
name : rector
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches : [ master ]
6
7
pull_request :
38
39
run : composer install --prefer-dist --no-progress
39
40
40
41
- name : Run rector
41
- run : composer rector
42
+ run : composer rector-fix
43
+
44
+ - name : " Check if build has changed"
45
+ if : success()
46
+ id : has-changes
47
+ run : |
48
+ echo "stdout<<EOF" >> $GITHUB_OUTPUT
49
+ echo "$(git diff --stat)" >> $GITHUB_OUTPUT
50
+ echo 'EOF' >> $GITHUB_OUTPUT
51
+
52
+ - name : Import GPG key
53
+ if : ${{ steps.has-changes.outputs.stdout }}
54
+ uses : crazy-max/ghaction-import-gpg@v6
55
+ with :
56
+ gpg_private_key : ${{ secrets.GPG_BOT }}
57
+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
58
+ fingerprint : ${{ secrets.GPG_FINGERPRINT }}
59
+ git_config_global : true
60
+ git_user_signingkey : true
61
+ git_commit_gpgsign : true
62
+ git_committer_name : Github bot
63
+ git_committer_email :
[email protected]
64
+
65
+ - name : " Commit files"
66
+ if : ${{ steps.has-changes.outputs.stdout }}
67
+ env :
68
+ GH_TOKEN : ${{ secrets.BOT_TOKEN }}
69
+ run : |
70
+ gh pr checkout ${{ github.event.pull_request.number }}
71
+ git commit -S -m "rector fix" -a
72
+
73
+ - name : " Push changes"
74
+ if : ${{ steps.has-changes.outputs.stdout }}
75
+ env :
76
+ GITHUB_TOKEN : ${{ secrets.BOT_TOKEN }}
77
+ run : git push -u origin HEAD
Original file line number Diff line number Diff line change 16
16
// Define what rule sets will be applied
17
17
$ config ->import (PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES );
18
18
$ config ->import (PHPUnitSetList::PHPUNIT_100 );
19
+ $ config ->import (SetList::STRICT_BOOLEANS );
20
+ $ config ->import (SetList::PRIVATIZATION );
21
+ $ config ->import (SetList::EARLY_RETURN );
22
+ $ config ->import (SetList::INSTANCEOF );
19
23
$ config ->import (SetList::CODE_QUALITY );
20
24
$ config ->import (SetList::DEAD_CODE );
21
25
$ config ->import (SetList::PHP_82 );
You can’t perform that action at this time.
0 commit comments