diff --git a/.gitattributes b/.gitattributes index 519b4dc..d771b9a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,6 +2,5 @@ /.gitignore export-ignore /.github export-ignore /phpcs.xml export-ignore -/phpunit.xml.dist export-ignore /CHANGELOG.md export-ignore /Dockerfile export-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0f95f5..21e2584 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -30,7 +30,7 @@ jobs: php-versions: ['7.4', '8.0', '8.1', '8.2'] runs-on: ${{ matrix.operating-system }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -57,6 +57,6 @@ jobs: run: vendor/bin/phpunit --coverage-clover clover.xml - name: Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: files: ./clover.xml diff --git a/composer.json b/composer.json index 1440cc3..7f193da 100644 --- a/composer.json +++ b/composer.json @@ -34,5 +34,11 @@ "allow-plugins": { "ocramius/package-versions": true } + }, + "archive": { + "exclude": [ + "/test", + "/phpunit.xml.dist" + ] } } diff --git a/test/Integration/ImagickRenderingTest.php b/test/Integration/ImagickRenderingTest.php index 39e44bf..3df8687 100644 --- a/test/Integration/ImagickRenderingTest.php +++ b/test/Integration/ImagickRenderingTest.php @@ -17,10 +17,16 @@ use PHPUnit\Framework\TestCase; use Spatie\Snapshots\MatchesSnapshots; +/** + * @group integration + */ final class ImagickRenderingTest extends TestCase { use MatchesSnapshots; + /** + * @requires extension imagick + */ public function testGenericQrCode() : void { $renderer = new ImageRenderer( @@ -35,6 +41,9 @@ public function testGenericQrCode() : void unlink($tempName); } + /** + * @requires extension imagick + */ public function testIssue79() : void { $eye = SquareEye::instance();