php-actions/composer

Problems trying to provide missing PHP extensions

devdrops opened this issue · 2 comments

Hi! I'm running this action on a private project, Laravel based, and I have the persistent failure below:

image

I've did updated the Composer dependencies:

image

But still this issue insists. Below is my actions file, where I've tried to provide the missing zip extension:

name: PHPStan/Larastan Analysis

on:
  pull_request:
    branches:
      - staging

jobs:
  phpstan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: php-actions/composer@v6

      - name: PHPStan Static Analysis
        uses: php-actions/phpstan@v3
        with:
          php_extensions: zip
          configuration: phpstan.neon
          memory_limit: 1G

Any help is really appreciated 😉

Geez, I've made a mistake! It was my fault, adding the extension in the wrong step.

g105b commented

Aha! Glad it worked out for you. If you have any other questions I'm happy to answer them here or in a new issue.