Skip to content

Commit

Permalink
Update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed May 14, 2023
1 parent 03d4bb1 commit 629ed88
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 70 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/coding-standards.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
pull_request: null
push:
branches:
- '*.*'

name: coding-standards

jobs:
psalm:
uses: spiral/gh-actions/.github/workflows/cs.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.1']
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
pull_request: null
push:
branches:
- master
- '*.*'

name: phpunit

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
pull_request: null
push:
branches:
- master
- '*.*'

name: static analysis

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
pull_request: null
push:
branches:
- master
- '*.*'

name: build

Expand Down
12 changes: 2 additions & 10 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,8 @@

return (new PhpCsFixer\Config())
->setRules([
'@PHP71Migration' => true,
'@PHPUnit75Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'protected_to_private' => false,
'phpdoc_to_comment' => false,
'single_line_throw' => false,
'native_constant_invocation' => ['strict' => false],
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => false],
'modernize_strpos' => true,
'@PSR12' => true,
'ternary_operator_spaces' => false,
])
->setRiskyAllowed(true)
->setFinder(
Expand Down

0 comments on commit 629ed88

Please sign in to comment.