diff --git a/.editorconfig b/.editorconfig index 81eba8cc..f44e4e29 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,6 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true end_of_line = lf + +[*.yml] +indent_size = 2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bb4a9e3c..0e8469b4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,6 @@ on: pull_request: jobs: - tests: name: Tests (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}) runs-on: ubuntu-latest @@ -13,8 +12,8 @@ jobs: strategy: fail-fast: false matrix: - operating-system: ['ubuntu-latest'] - php-versions: ['7.4', '8.0', '8.1', '8.2'] + operating-system: ["ubuntu-latest"] + php-versions: ["7.4", "8.0", "8.1", "8.2"] steps: - name: Checkout @@ -22,7 +21,7 @@ jobs: with: fetch-depth: 2 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo '💡 The ${{ github.repository }} repository has been cloned to the runner.' - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php @@ -38,11 +37,12 @@ jobs: uses: "ramsey/composer-install@v2" - name: Run tests - run: vendor/bin/phpunit --coverage-text + run: vendor/bin/phpunit --coverage-clover .phpunit.cache/clover.xml - name: Upload coverage reports to Codecov + if: ${{ success() && matrix.php-versions == '8.2' }} uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - - run: echo "🍏 This job's status is ${{ job.status }}." + with: + files: ./.phpunit.cache/clover.xml + fail_ci_if_error: true + verbose: true diff --git a/composer.json b/composer.json index 2956c094..a2fe7682 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,11 @@ "name": "Kevin Saliou", "email": "kevin@saliou.name", "homepage": "http://kevin.saliou.name" + }, + { + "name": "Artur Weigandt", + "email": "artur@wlabs.de", + "homepage": "https://wlabs.de" } ], "require": {