diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 393381c..e590ccd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,8 @@ jobs: uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ matrix.php-versions }}-composer- + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: ${{ runner.os }}-composer- - name: Remove composer.lock run: rm -f composer.lock diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 2c7a7d7..ac17596 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -44,9 +44,7 @@ jobs: - name: Compute Coverage run: vendor/bin/phpunit --coverage-clover ./coverage.xml - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 with: - files: ./coverage.xml - flags: unittests - name: codecov-laravel-dt0 + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 37a5aa5..783f9b9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Laravel Dt0 -[![CI](https://github.com/fab2s/laravel-dt0/actions/workflows/ci.yml/badge.svg)](https://github.com/fab2s/laravel-dt0/actions/workflows/ci.yml) [![QA](https://github.com/fab2s/laravel-dt0/actions/workflows/qa.yml/badge.svg)](https://github.com/fab2s/laravel-dt0/actions/workflows/qa.yml) +[![CI](https://github.com/fab2s/laravel-dt0/actions/workflows/ci.yml/badge.svg)](https://github.com/fab2s/laravel-dt0/actions/workflows/ci.yml) [![QA](https://github.com/fab2s/laravel-dt0/actions/workflows/qa.yml/badge.svg)](https://github.com/fab2s/laravel-dt0/actions/workflows/qa.yml) [![codecov](https://codecov.io/gh/fab2s/laravel-dt0/graph/badge.svg?token=YE6AYEDA64)](https://codecov.io/gh/fab2s/laravel-dt0) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com) [![License](http://poser.pugx.org/fab2s/dt0/license)](https://packagist.org/packages/fab2s/dt0) Laravel support for [fab2s/dt0](https://github.com/fab2s/dt0), a DTO (_Data-Transport-Object_) PHP implementation than can both secure mutability and implement convenient ways to take control over input and output in various formats. diff --git a/tests/Casts/Dt0castTest.php b/tests/Casts/Dt0CastTest.php similarity index 99% rename from tests/Casts/Dt0castTest.php rename to tests/Casts/Dt0CastTest.php index f3387da..3f67404 100644 --- a/tests/Casts/Dt0castTest.php +++ b/tests/Casts/Dt0CastTest.php @@ -19,7 +19,7 @@ use JsonException; use PHPUnit\Framework\Attributes\DataProvider; -class Dt0castTest extends TestCase +class Dt0CastTest extends TestCase { /** * @param DumbDt0|class-string|null $expected