Skip to content

Commit d34f75f

Browse files
committed
refactor(workflows): separate command and args for Composer installation in tests and wiki workflows
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent e43c41e commit d34f75f

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/reports.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
COMPOSER_CACHE_DIR: /tmp/composer-cache
3838
with:
3939
php_version: '8.3'
40-
args: 'install --prefer-dist --no-progress --no-interaction --no-plugins --no-scripts'
40+
command: 'install'
41+
args: '--prefer-dist --no-progress --no-interaction --no-plugins --no-scripts'
4142

4243
- name: Generate reports
4344
uses: php-actions/composer@v6

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
COMPOSER_CACHE_DIR: /tmp/composer-cache
5454
with:
5555
php_version: ${{ matrix.php-version }}
56-
args: 'install --prefer-dist --no-progress --no-interaction --no-plugins --no-scripts'
56+
command: 'install'
57+
args: '--prefer-dist --no-progress --no-interaction --no-plugins --no-scripts'
5758

5859
- name: Resolve minimum coverage
5960
id: minimum-coverage

.github/workflows/wiki.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
COMPOSER_CACHE_DIR: /tmp/composer-cache
4242
with:
4343
php_version: '8.3'
44-
args: 'install --prefer-dist --no-progress --no-interaction --no-plugins --no-scripts'
44+
command: 'install'
45+
args: '--prefer-dist --no-progress --no-interaction --no-plugins --no-scripts'
4546

4647
- name: Create Docs Markdown
4748
uses: php-actions/composer@v6

0 commit comments

Comments
 (0)