diff --git a/.gitattributes b/.gitattributes index ed6dadf..0b3245f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ /tests export-ignore /.github export-ignore +/.phpunit.cache .gitattributes export-ignore .gitignore export-ignore phpunit.php export-ignore diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..12b0547 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,26 @@ +name: Code Coverage +on: + push: + branches: + - master + pull_request: + +jobs: + coverage: + name: Code Coverage + runs-on: 'ubuntu-latest' + steps: + - name: Checkout Code + uses: actions/checkout@v3 + - name: PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + extensions: openssl + coverage: xdebug + - name: Install Dependencies + run: composer require php-di/php-di + - name: Run Coverage + run: vendor/bin/phpunit --coverage-clover coverage.xml + - name: Upload Coverage + uses: codecov/codecov-action@v3 diff --git a/.github/workflows/Linter.yml b/.github/workflows/linter.yml similarity index 74% rename from .github/workflows/Linter.yml rename to .github/workflows/linter.yml index 7e8ea7f..7628f88 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/linter.yml @@ -1,23 +1,22 @@ name: Coding Style -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: php_cs_fixer: name: php_cs_fixer - runs-on: "${{ matrix.os }}" - strategy: - fail-fast: true - matrix: - os: [ubuntu-latest] - php-version: - - 8.1 + runs-on: "ubuntu-latest" steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-version }} + php-version: '8.1' + coverage: none - name: Install Dependencies run: composer install --no-progress - name: Run PHP-CS-Fixer @@ -35,11 +34,12 @@ jobs: - 8.1 steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} + coverage: none - name: Install Dependencies run: composer install --no-progress - name: Run PHP-Stan diff --git a/.github/workflows/Tester.yml b/.github/workflows/tester.yml similarity index 91% rename from .github/workflows/Tester.yml rename to .github/workflows/tester.yml index 25f95c0..6da3b20 100644 --- a/.github/workflows/Tester.yml +++ b/.github/workflows/tester.yml @@ -1,5 +1,9 @@ name: Tester -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: PHPUnit: @@ -19,12 +23,13 @@ jobs: - 8.1 steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} extensions: openssl + coverage: none - name: Install Dependencies run: composer install --no-progress - name: Laravel Framework diff --git a/.gitignore b/.gitignore index ad694e3..869d21a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ vendor/ composer.lock *.DS_Store .idea/ +.phpunit.cache/ diff --git a/README.md b/README.md index 230ec1b..7c2fa06 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@

- Logo + Logo

+ scrutinizer Linter Status Tester Status diff --git a/phpunit.xml b/phpunit.xml index f53075c..0a205a3 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,17 +1,25 @@ - - - - ./tests - - + executionOrder="depends,defects" + beStrictAboutCoversAnnotation="true" + beStrictAboutOutputDuringTests="true" + beStrictAboutTodoAnnotatedTests="true" + convertDeprecationsToExceptions="true" + failOnRisky="true" + failOnWarning="true" + verbose="true"> + + + tests + + + + + + src + +