diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ab8036a..21bec96 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,15 +31,17 @@ jobs: key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Setup PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick coverage: none + ini-values: 'extension=php_fileinfo.dll' - name: Install dependencies run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest + - name: Execute tests run: vendor/bin/phpunit diff --git a/phpunit.xml.dist b/phpunit.xml.dist index daa84ae..70c3289 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,10 +5,21 @@ colors="true" > + + ./tests + ./tests/Unit + + ./tests/Feature + + + + ./src + + diff --git a/tests/Feature/Test.php b/tests/Feature/Test.php new file mode 100644 index 0000000..b4ef1cb --- /dev/null +++ b/tests/Feature/Test.php @@ -0,0 +1,14 @@ +assertTrue(true); + } +}