File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 51
51
- name : Run PHP Coding Standards Fixer
52
52
run : php-cs-fixer fix -v --dry-run --allow-risky=yes --using-cache=no
53
53
- name : Run PHP_CodeSniffer
54
- run : phpcs -p --standard=PSR12 src tests
54
+ run : phpcs -p --standard=PSR12 src tests --exclude=PSR12.Properties.ConstantVisibility
55
+ coverage :
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - name : Checkout
59
+ uses : actions/checkout@v2
60
+ - name : Setup PHP
61
+ uses : shivammathur/setup-php@v2
62
+ with :
63
+ php-version : ' 8.0'
64
+ coverage : xdebug
65
+ - name : Get composer cache directory
66
+ id : composer-cache
67
+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
68
+ - name : Cache composer dependencies
69
+ uses : actions/cache@v2
70
+ with :
71
+ path : ${{ steps.composer-cache.outputs.dir }}
72
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
73
+ restore-keys : ${{ runner.os }}-composer-
74
+ - name : Install dependencies
75
+ run : composer install --no-progress --prefer-dist --classmap-authoritative --no-interaction
76
+ - name : Setup problem matchers for PHPUnit
77
+ run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
78
+ - name : Test with phpunit
79
+ run : vendor/bin/phpunit --coverage-clover coverage.xml
80
+ - name : Upload coverage
81
+ uses : codecov/codecov-action@v1
You can’t perform that action at this time.
0 commit comments