-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
28 lines (24 loc) · 745 Bytes
/
action.yml
File metadata and controls
28 lines (24 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: 'Set up PHP'
description: 'Set up PHP and composer incl. caches'
inputs:
php-version:
description: 'The version of PHP to set up'
required: true
runs:
using: "composite"
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php-version }}
coverage: xdebug
ini-values: zend.assertions=1
- id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- run: composer install
shell: bash