Skip to content

Commit a6803ae

Browse files
committed
feat(workflows): optimize Composer install arguments for reports, tests, and wiki workflows
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent 90acbcc commit a6803ae

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/reports.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ jobs:
2929
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
3030
restore-keys: |
3131
${{ runner.os }}-composer-
32+
3233
- name: Install dependencies
3334
uses: php-actions/composer@v6
3435
env:
3536
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ github.token }}"} }'
3637
COMPOSER_CACHE_DIR: /tmp/composer-cache
3738
with:
3839
php_version: '8.3'
40+
args: 'install --prefer-dist --no-progress --no-suggest --no-interaction --no-plugins --no-scripts'
3941

4042
- name: Generate reports
4143
uses: php-actions/composer@v6

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
COMPOSER_CACHE_DIR: /tmp/composer-cache
5454
with:
5555
php_version: ${{ matrix.php-version }}
56+
args: 'install --prefer-dist --no-progress --no-suggest --no-interaction --no-plugins --no-scripts'
5657

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

.github/workflows/wiki.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
COMPOSER_CACHE_DIR: /tmp/composer-cache
4242
with:
4343
php_version: '8.3'
44+
args: 'install --prefer-dist --no-progress --no-suggest --no-interaction --no-plugins --no-scripts'
4445

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

0 commit comments

Comments
 (0)