diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 6d79227..c1aa3fc 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,17 +12,14 @@ jobs: strategy: fail-fast: true matrix: - php: [8.0, 7.4] - laravel: [9.*,8.*] + php: [8.2,8.1] + laravel: [10.*,9.*] dependency-version: [prefer-lowest, prefer-stable] - exclude: - - laravel: 9.* - php: 7.4 include: - - laravel: 8.* - testbench: 6.* - laravel: 9.* testbench: 7.* + - laravel: 10.* + testbench: 8.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 029160c..4dd12c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `laravel-unavatar` will be documented in this file +## 0.5.0 - 2023-07-28 + +- add Laravel 10 support +- drop Laravel 8 support + ## 0.3.0 - 2022-04-08 - add Laravel 9 support diff --git a/composer.json b/composer.json index 8425934..7607d0b 100644 --- a/composer.json +++ b/composer.json @@ -25,16 +25,16 @@ "source": "https://github.com/Astrotomic/laravel-unavatar" }, "require": { - "php": "^7.4 || ^8.0", + "php": "^8.0 || ^8.1", "ext-json": "*", - "astrotomic/php-unavatar": "^0.2.0 || ^0.3.0", - "illuminate/support": "^8.0 || ^9.0", - "illuminate/view": "^8.0 || ^9.0" + "astrotomic/php-unavatar": "^0.3.0", + "illuminate/support": "^9.0 || ^10.0", + "illuminate/view": "^9.0 || ^10.0" }, "require-dev": { "gajus/dindent": "^2.0", - "orchestra/testbench": "^6.0 || ^7.0", - "phpunit/phpunit": "^9.3" + "orchestra/testbench": "^7.0 || ^8.0", + "phpunit/phpunit": "^9.0 || ^10.0" }, "autoload": { "psr-4": { @@ -46,9 +46,6 @@ "Astrotomic\\Unavatar\\Laravel\\Tests\\": "tests" } }, - "config": { - "sort-packages": true - }, "extra": { "laravel": { "providers": [ diff --git a/tests/ComponentTest.php b/tests/ComponentTest.php index eab8f43..d583068 100644 --- a/tests/ComponentTest.php +++ b/tests/ComponentTest.php @@ -9,7 +9,7 @@ public function it_can_render(): void { $expected = <<<'HTML' Astrotomic avatar @@ -23,7 +23,7 @@ public function it_can_render_with_fallback(): void { $expected = <<<'HTML' astrotomic.info avatar @@ -37,7 +37,7 @@ public function it_can_render_clearbit(): void { $expected = <<<'HTML' astrotomic.info avatar @@ -51,7 +51,7 @@ public function it_can_render_deviantart(): void { $expected = <<<'HTML' astrotomic avatar @@ -65,7 +65,7 @@ public function it_can_render_dribbble(): void { $expected = <<<'HTML' astrotomic avatar diff --git a/tests/UnavatarTest.php b/tests/UnavatarTest.php index c94ee94..df88d3c 100644 --- a/tests/UnavatarTest.php +++ b/tests/UnavatarTest.php @@ -20,7 +20,7 @@ public function it_is_renderable(): void $unavatar = Unavatar::github('Gummibeer'); static::assertArrayHasKey(Renderable::class, class_implements($unavatar)); - static::assertSame('Gummibeer\'s github avatar', $unavatar->render()); + static::assertSame('Gummibeer's github avatar', $unavatar->render()); } /** @test */ @@ -29,7 +29,7 @@ public function it_is_htmlable(): void $unavatar = Unavatar::github('Gummibeer'); static::assertArrayHasKey(Htmlable::class, class_implements($unavatar)); - static::assertSame('Gummibeer\'s github avatar', $unavatar->toHtml()); + static::assertSame('Gummibeer's github avatar', $unavatar->toHtml()); } /** @test */ @@ -42,7 +42,7 @@ public function it_is_responsable_redirect(): void $redirect = $unavatar->toResponse(Request::createFromGlobals()); static::assertInstanceOf(RedirectResponse::class, $redirect); - static::assertSame('https://unavatar.now.sh/github/Gummibeer', $redirect->getTargetUrl()); + static::assertSame('https://unavatar.io/github/Gummibeer', $redirect->getTargetUrl()); } /** @test */