From 794ac801a53da35104e5cab394f79db8287f657d Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sat, 10 Oct 2020 22:51:04 +0900 Subject: [PATCH] Annotate problems in code --- .github/workflows/main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e9b07fe1..dc10f6b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,13 @@ jobs: - name: Install dependencies 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 php-cs-fixer: @@ -50,6 +56,7 @@ jobs: with: php-version: 7.4 extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, SimpleXML, xml, xmlreader, xmlwriter, zip, zlib + tools: cs2pr - name: Get composer cache directory id: composer-cache @@ -66,7 +73,7 @@ jobs: run: composer install --no-progress --prefer-dist --optimize-autoloader - 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: runs-on: ubuntu-latest @@ -79,6 +86,7 @@ jobs: with: php-version: 7.4 extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, SimpleXML, xml, xmlreader, xmlwriter, zip, zlib + tools: cs2pr - name: Get composer cache directory id: composer-cache @@ -95,7 +103,7 @@ jobs: run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Code style with PHP_CodeSniffer - run: ./vendor/bin/phpcs + run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr coverage: runs-on: ubuntu-latest