diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab863b6..ed546dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ jobs: - uses: actions/checkout@v1 - name: Install dependencies run: composer install --no-interaction --no-progress + - name: Run cs-fixer + run: php${{ matrix.php }} vendor/bin/php-cs-fixer --config=.php-cspfixer.php - name: Run tests run: php${{ matrix.php }} vendor/bin/phpunit --configuration Tests/phpunit.xml --verbose --fail-on-warning - name: Run phpstan diff --git a/.gitignore b/.gitignore index b26a347..f6f9360 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ vendor/ composer.lock .php-cs-fixer.cache .idea/ +Tests/.phpunit.result.cache diff --git a/Tests/phpunit.xml b/Tests/phpunit.xml index 7242208..e90f378 100644 --- a/Tests/phpunit.xml +++ b/Tests/phpunit.xml @@ -1,16 +1,17 @@ - - - - ./Tests.php - - - - - ../SourceQuery - - - - - + + + + ../SourceQuery + + + + + + + + ./Tests.php + + + diff --git a/composer.json b/composer.json index 7b280d5..a0c459a 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "scripts": { "psalm": "psalm", "phpstan": "phpstan", - "phpunit": "phpunit Tests/Tests.php", + "phpunit": "phpunit --configuration Tests/phpunit.xml --verbose --fail-on-warning", "php-cs-fixer": "php-cs-fixer fix --config=.php-cs-fixer.php" } }