Annotate problems in code

This commit is contained in:
Adrien Crivelli 2020-10-10 22:51:04 +09:00
parent 44080a1e8b
commit 794ac801a5
No known key found for this signature in database
GPG Key ID: 16D79B903B4B5874
1 changed files with 11 additions and 3 deletions

View File

@ -36,7 +36,13 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Test with phpunit - name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Test with PHPUnit
run: ./vendor/bin/phpunit run: ./vendor/bin/phpunit
php-cs-fixer: php-cs-fixer:
@ -50,6 +56,7 @@ jobs:
with: with:
php-version: 7.4 php-version: 7.4
extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, SimpleXML, xml, xmlreader, xmlwriter, zip, zlib extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, SimpleXML, xml, xmlreader, xmlwriter, zip, zlib
tools: cs2pr
- name: Get composer cache directory - name: Get composer cache directory
id: composer-cache id: composer-cache
@ -66,7 +73,7 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Code style with PHP-CS-Fixer - name: Code style with PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run run: ./vendor/bin/php-cs-fixer fix --format=checkstyle | cs2pr
phpcs: phpcs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -79,6 +86,7 @@ jobs:
with: with:
php-version: 7.4 php-version: 7.4
extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, SimpleXML, xml, xmlreader, xmlwriter, zip, zlib extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, SimpleXML, xml, xmlreader, xmlwriter, zip, zlib
tools: cs2pr
- name: Get composer cache directory - name: Get composer cache directory
id: composer-cache id: composer-cache
@ -95,7 +103,7 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Code style with PHP_CodeSniffer - name: Code style with PHP_CodeSniffer
run: ./vendor/bin/phpcs run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr
coverage: coverage:
runs-on: ubuntu-latest runs-on: ubuntu-latest