-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
37 lines (33 loc) · 1.14 KB
/
action.yml
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
29
30
31
32
33
34
35
36
37
name: 'Install Drupal 8+ instance'
description: 'Install dependencies on a Drupal 8+ project'
inputs:
dev:
description: 'Prod or development release (composer --dev)'
required: true
default: 'false'
php:
description: 'Absolute path to PHP executable to use when running composer'
required: false
default: '/usr/bin/php'
composer:
description: 'Absolute path to the composer executable'
required: false
default: '/usr/bin/composer'
verbose:
description: 'Enable console messages'
required: false
default: '-q'
runs:
using: "composite"
steps:
- name: "Validate composer schema"
run: composer validate --no-ansi
shell: bash
- name: "Install prod dependencies"
if: ${{ inputs.dev == 'false' }}
run: ${{ inputs.php }} ${{ inputs.composer }} install ${{ inputs.verbose }} --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader
shell: bash
- name: "Install dev dependencies"
if: ${{ inputs.dev == 'true' }}
run: ${{ inputs.php }} ${{ inputs.composer }} install ${{ inputs.verbose}} --no-ansi --no-interaction --no-progress
shell: bash