diff --git a/.github/workflows/pull-request-check.yml b/.github/workflows/pull-request-check.yml index a204bb08..e58547db 100644 --- a/.github/workflows/pull-request-check.yml +++ b/.github/workflows/pull-request-check.yml @@ -9,6 +9,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + tools: composer + coverage: none + - name: Cache Composer dependencies uses: actions/cache@v3 with: @@ -16,13 +23,9 @@ jobs: key: ${{ runner.os }}-${{ hashFiles('composer.lock') }} - name: Installing dependencies - uses: php-actions/composer@v6 - with: - php_version: 8.2 + env: + COMPOSER_CACHE_DIR: /tmp/composer-cache + run: composer install --no-interaction --no-progress --prefer-dist - name: Running unit test - uses: php-actions/phpunit@v3 - with: - version: 9.6 - php_version: 8.2 - configuration: phpunit.xml + run: vendor/bin/phpunit --configuration phpunit.xml