diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b396b33..ae668d7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -7,15 +7,14 @@ on: jobs: run-tests: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] php: [8.2, 8.3] stability: [prefer-lowest, prefer-stable] - name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} + name: PHP ${{ matrix.php }} - ${{ matrix.stability }} steps: - name: Checkout code diff --git a/composer.json b/composer.json index ec3365f..1b0d7d0 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ } ], "require-dev": { - "spatie/phpunit-snapshot-assertions": "^5.1", + "spatie/phpunit-snapshot-assertions": "^5.1.1", "phpunit/phpunit": "^10.5", "spatie/pixelmatch-php": "^1.0" } diff --git a/tests/Integration/IntegrationTestCase.php b/tests/Integration/IntegrationTestCase.php index 83395d7..464b301 100644 --- a/tests/Integration/IntegrationTestCase.php +++ b/tests/Integration/IntegrationTestCase.php @@ -20,7 +20,12 @@ protected function tearDown(): void RecursiveIteratorIterator::CHILD_FIRST, ); + /** @var \SplFileInfo $file */ foreach ($files as $file) { + if ($file->getFilename() === '.gitkeep') { + continue; + } + unlink($file->getRealPath()); } } diff --git a/tests/resources/testcases/.gitkeep b/tests/resources/testcases/.gitkeep new file mode 100644 index 0000000..e69de29