Skip to content

Commit 482ca68

Browse files
author
Wout Gevaert
committed
Revert "Move static analysis to separate yml"
This reverts commit f0aee0f.
1 parent f0aee0f commit 482ca68

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
COMPOSER_VERSION: 2
2828
INSTALL_PATH: php-cypher-dsl
2929
REPOSITORY_NAME: php-cypher-dsl
30+
FIXER_RULES: "@PSR12,align_multiline_comment,array_indentation,blank_line_before_statement,no_unused_imports,no_useless_else,no_useless_return,ordered_imports,phpdoc_scalar,return_assignment,simplified_if_return,trailing_comma_in_multiline"
3031

3132
steps:
3233
# https://getcomposer.org/download/
@@ -55,8 +56,14 @@ jobs:
5556
- name: Install dependencies
5657
run: composer update --working-dir ${{ env.INSTALL_PATH }}
5758

59+
- name: Run php-cs-fixer on src
60+
run: composer exec -d ${{ env.INSTALL_PATH }} -- php-cs-fixer fix --dry-run --verbose --rules=${{ env.FIXER_RULES }} ./src
61+
62+
- name: Run php-cs-fixer on tests
63+
run: composer exec -d ${{ env.INSTALL_PATH }} -- php-cs-fixer fix --dry-run --verbose --rules=${{ env.FIXER_RULES }} ./tests
64+
5865
- name: Run unit tests
5966
run: composer test --working-dir ${{ env.INSTALL_PATH }}
6067

6168
- name: Run mutation tests
62-
run: composer infect --working-dir ${{ env.INSTALL_PATH }}
69+
run: composer infect --working-dir ${{ env.INSTALL_PATH }}

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)