Skip to content

Commit f0aee0f

Browse files
author
Wout Gevaert
committed
1 parent 4dad99a commit f0aee0f

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ 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"
3130

3231
steps:
3332
# https://getcomposer.org/download/
@@ -56,14 +55,8 @@ jobs:
5655
- name: Install dependencies
5756
run: composer update --working-dir ${{ env.INSTALL_PATH }}
5857

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-
6558
- name: Run unit tests
6659
run: composer test --working-dir ${{ env.INSTALL_PATH }}
6760

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

.github/workflows/static-analysis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: [ push, pull_request ]
2+
name: Lint
3+
jobs:
4+
php-cs-fixer:
5+
name: "php-cs-fixer"
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: "PHP-CS-Fixer"
10+
uses: docker://oskarstark/php-cs-fixer-ga:3.6.0
11+
with:
12+
args: --dry-run --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"

0 commit comments

Comments
 (0)