Fixed ci-setup local composite action

This commit is contained in:
Alejandro Celaya 2022-08-13 11:16:33 +02:00
parent fe4ced2709
commit ae2dc39a78
2 changed files with 12 additions and 12 deletions

View file

@ -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

View file

@ -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: