File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 4
4
# Remove developer files from exports
5
5
tests export-ignore
6
6
.gitattributes export-ignore
7
+ .github export-ignore
7
8
.gitignore export-ignore
8
9
.php_cs export-ignore
9
10
.travis.yml export-ignore
Original file line number Diff line number Diff line change 17
17
steps :
18
18
- name : Checkout
19
19
uses : actions/checkout@v2
20
- - name : Setup PHP, with composer and extensions
20
+ - name : Setup PHP
21
21
uses : shivammathur/setup-php@v2
22
22
with :
23
23
php-version : ${{ matrix.php-versions }}
37
37
run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
38
38
- name : Test with phpunit
39
39
run : vendor/bin/phpunit
40
+ lint :
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+ - name : Checkout
44
+ uses : actions/checkout@v2
45
+ - name : Setup PHP
46
+ uses : shivammathur/setup-php@v2
47
+ with :
48
+ php-version : ' 7.4'
49
+ coverage : none
50
+ tools : php-cs-fixer, phpcs
51
+ - name : Run PHP Coding Standards Fixer
52
+ run : php-cs-fixer fix -v --dry-run --allow-risky=yes --using-cache=no
53
+ - name : Run PHP_CodeSniffer
54
+ run : phpcs -p --standard=PSR12 src tests
You can’t perform that action at this time.
0 commit comments