From ae2dc39a785a6df4cd89eea2f81af52cedfcc156 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 13 Aug 2022 11:16:33 +0200 Subject: [PATCH] Fixed ci-setup local composite action --- .github/actions/ci-setup/action.yml | 17 ++++++++++------- .github/workflows/ci-mutation-tests.yml | 7 ++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/actions/ci-setup/action.yml b/.github/actions/ci-setup/action.yml index 5340bf28..731f09d2 100644 --- a/.github/actions/ci-setup/action.yml +++ b/.github/actions/ci-setup/action.yml @@ -1,22 +1,24 @@ name: CI setup +description: 'Sets up the environment to run CI actions for Shlink' inputs: install-deps: - type: boolean + description: 'Tells if dependencies should be installed with composer. Default value is "yes"' required: true - default: true + default: 'yes' php-version: - type: string + description: 'The PHP version to be setup' required: true php-extensions: - type: string + description: 'The PHP extensions to install' required: true + default: '' extensions-cache-key: - type: string + description: 'The key used to cache PHP extensions. If empty value is provided, extension caching is disabled' required: true runs: - uses: composite + using: composite steps: - name: Setup cache environment id: extcache @@ -40,5 +42,6 @@ runs: coverage: pcov ini-values: pcov.directory=module - name: Install dependencies - if: ${{ inputs.install-deps }} + if: ${{ inputs.install-deps == 'yes' }} run: composer install --no-interaction --prefer-dist + shell: bash diff --git a/.github/workflows/ci-mutation-tests.yml b/.github/workflows/ci-mutation-tests.yml index ff428d3e..85b74f54 100644 --- a/.github/workflows/ci-mutation-tests.yml +++ b/.github/workflows/ci-mutation-tests.yml @@ -14,15 +14,12 @@ jobs: strategy: matrix: php-version: [ '8.1' ] - env: - extensions: openswoole-4.11.1 steps: - uses: actions/checkout@v3 - - name: Setup - uses: './.github/actions/ci-setup' + - uses: './.github/actions/ci-setup' with: php-version: ${{ matrix.php-version }} - php-extensions: ${{ env.extensions }} + php-extensions: openswoole-4.11.1 extensions-cache-key: mutation-tests-extensions-${{ matrix.php-version }}-${{ inputs.test-group }} - uses: actions/download-artifact@v3 with: