mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-23 21:27:44 +03:00
Fixed ci-setup local composite action
This commit is contained in:
parent
fe4ced2709
commit
ae2dc39a78
2 changed files with 12 additions and 12 deletions
17
.github/actions/ci-setup/action.yml
vendored
17
.github/actions/ci-setup/action.yml
vendored
|
@ -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
|
||||
|
|
7
.github/workflows/ci-mutation-tests.yml
vendored
7
.github/workflows/ci-mutation-tests.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue