mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-17 15:59:56 +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
|
name: CI setup
|
||||||
|
description: 'Sets up the environment to run CI actions for Shlink'
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
install-deps:
|
install-deps:
|
||||||
type: boolean
|
description: 'Tells if dependencies should be installed with composer. Default value is "yes"'
|
||||||
required: true
|
required: true
|
||||||
default: true
|
default: 'yes'
|
||||||
php-version:
|
php-version:
|
||||||
type: string
|
description: 'The PHP version to be setup'
|
||||||
required: true
|
required: true
|
||||||
php-extensions:
|
php-extensions:
|
||||||
type: string
|
description: 'The PHP extensions to install'
|
||||||
required: true
|
required: true
|
||||||
|
default: ''
|
||||||
extensions-cache-key:
|
extensions-cache-key:
|
||||||
type: string
|
description: 'The key used to cache PHP extensions. If empty value is provided, extension caching is disabled'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
uses: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Setup cache environment
|
- name: Setup cache environment
|
||||||
id: extcache
|
id: extcache
|
||||||
|
@ -40,5 +42,6 @@ runs:
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
ini-values: pcov.directory=module
|
ini-values: pcov.directory=module
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: ${{ inputs.install-deps }}
|
if: ${{ inputs.install-deps == 'yes' }}
|
||||||
run: composer install --no-interaction --prefer-dist
|
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:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version: [ '8.1' ]
|
php-version: [ '8.1' ]
|
||||||
env:
|
|
||||||
extensions: openswoole-4.11.1
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup
|
- uses: './.github/actions/ci-setup'
|
||||||
uses: './.github/actions/ci-setup'
|
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php-version }}
|
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 }}
|
extensions-cache-key: mutation-tests-extensions-${{ matrix.php-version }}-${{ inputs.test-group }}
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue