diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5b0b2c7..d4a93e3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,29 +12,7 @@ permissions: jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: "8.3" - - - name: Validate composer.json and composer.lock - run: composer validate --strict - - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run tests - run: vendor/bin/phpunit + - uses: php-actions/composer@v6 + - run: vendor/bin/phpunit diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..f24b67b --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,11 @@ + + + + + tests + + +